Mercurial > vim-lawrencium
diff autoload/lawrencium/status.vim @ 140:652a6f5df0f3
Fixed for broken things after the reorganization.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 13 Jun 2016 21:55:40 -0700 |
parents | 065625e1bb31 |
children | 4d5f4233b04e |
line wrap: on
line diff
--- a/autoload/lawrencium/status.vim Mon Jun 13 09:32:34 2016 -0700 +++ b/autoload/lawrencium/status.vim Mon Jun 13 21:55:40 2016 -0700 @@ -80,7 +80,7 @@ endif endfunction -function! s:HgStatus_Refresh(...) abort +function! lawrencium#status#HgStatusRefresh(...) abort if a:0 > 0 let l:win_nr = bufwinnr(a:1) call lawrencium#trace("Switching back to status window ".l:win_nr) @@ -104,6 +104,10 @@ edit endfunction +function! s:HgStatus_Refresh() abort + call lawrencium#status#HgStatusRefresh() +endfunction + function! s:HgStatus_FileEdit(newtab) abort " Get the path of the file the cursor is on. let l:filename = s:HgStatus_GetSelectedFile() @@ -148,7 +152,7 @@ call l:repo.RunCommand('addremove', l:filenames) " Refresh the status window. - call s:HgStatus_Refresh() + call lawrencium#status#HgStatusRefresh() endfunction function! s:HgStatus_Revert(linestart, lineend, bang) abort @@ -168,7 +172,7 @@ call l:repo.RunCommand('revert', l:filenames) " Refresh the status window. - call s:HgStatus_Refresh() + call lawrencium#status#HgStatusRefresh() endfunction function! s:HgStatus_Commit(linestart, lineend, bang, vertical) abort @@ -181,7 +185,7 @@ " Run `Hgcommit` on those paths. let l:buf_nr = bufnr('%') - let l:callback = 'call s:HgStatus_Refresh('.l:buf_nr.')' + let l:callback = 'call lawrencium#status#HgStatusRefresh('.l:buf_nr.')' call lawrencium#commit#HgCommit(a:bang, a:vertical, l:callback, l:filenames) endfunction @@ -230,7 +234,7 @@ call l:repo.RunCommand('qnew', l:filenames) " Refresh the status window. - call s:HgStatus_Refresh() + call lawrencium#status#HgStatusRefresh() endfunction function! s:HgStatus_QRefresh(linestart, lineend) abort @@ -247,7 +251,7 @@ call l:repo.RunCommand('qrefresh', l:filenames) " Refresh the status window. - call s:HgStatus_Refresh() + call lawrencium#status#HgStatusRefresh() endfunction