# HG changeset patch # User Ludovic Chabant # Date 1392623549 28800 # Node ID 066c8654e7548e407c476f548e7eca23a79cbcf2 # Parent e023d77643619390ca09f0009562d7c385c56ab4 Reverted some automatic `Hgstatus` window refresh. Apparently Vim doesn't like what I'm doing. Sigh. diff -r e023d7764361 -r 066c8654e754 plugin/lawrencium.vim --- 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