diff plugin/lawrencium.vim @ 75:066c8654e754

Reverted some automatic `Hgstatus` window refresh. Apparently Vim doesn't like what I'm doing. Sigh.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 16 Feb 2014 23:52:29 -0800
parents e023d7764361
children f535cda5d20e
line wrap: on
line diff
--- a/plugin/lawrencium.vim	Sun Feb 16 22:54:54 2014 -0800
+++ b/plugin/lawrencium.vim	Sun Feb 16 23:52:29 2014 -0800
@@ -900,16 +900,10 @@
     endif
 endfunction
 
-function! s:HgStatus_Refresh(...) abort
-    if a:0 == 0
-        " Just re-edit the buffer, it will reload the contents by calling
-        " the matching Mercurial command.
-        edit
-    else
-        " Re-edit the given buffer.
-        execute 'buf ' . a:1
-        edit
-    endif
+function! s:HgStatus_Refresh() abort
+    " Just re-edit the buffer, it will reload the contents by calling
+    " the matching Mercurial command.
+    edit
 endfunction
 
 function! s:HgStatus_FileEdit() abort
@@ -954,16 +948,8 @@
         return
     endif
 
-    " Remember which buffer this is.
-    let l:status_nr = bufnr('%')
-
     " Run `Hgcommit` on those paths.
     call s:HgCommit(a:bang, a:vertical, l:filenames)
-
-    " At this point we should be in the commit message buffer.
-    " Let's refresh the status window when that buffer gets deleted.
-    let l:bufobj = s:buffer_obj()
-    call l:bufobj.OnDelete('call s:HgStatus_Refresh(' . l:status_nr . ')')
 endfunction
 
 function! s:HgStatus_Diff(vertical) abort