changeset 82:31801dcca77d

Re-edit a reverted file to see the change.
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 07 Mar 2014 00:31:35 -0800
parents a42b0e63a8ea
children a383a816d975
files plugin/lawrencium.vim
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugin/lawrencium.vim	Fri Mar 07 00:26:59 2014 -0800
+++ b/plugin/lawrencium.vim	Fri Mar 07 00:31:35 2014 -0800
@@ -1411,6 +1411,9 @@
     " Get the repo and run the command.
     let l:repo = s:hg_repo()
     call l:repo.RunCommand('revert', l:filenames)
+
+    " Re-edit the file to see the change.
+    edit
 endfunction
 
 call s:AddMainCommand("-bang -nargs=* -complete=customlist,s:ListRepoFiles Hgrevert :call s:HgRevert(<bang>0, <f-args>)")