# HG changeset patch # User Ludovic Chabant # Date 1324425695 28800 # Node ID de588a4bca10f37358c7b0eeccaf5abbbe0ce0f6 # Parent 0e952b7c79d7545894cb4614201d7a8162199681 Fixed completely wrong code that somehow almost ran completely fine. diff -r 0e952b7c79d7 -r de588a4bca10 plugin/lawrencium.vim --- a/plugin/lawrencium.vim Tue Dec 20 15:32:22 2011 -0800 +++ b/plugin/lawrencium.vim Tue Dec 20 16:01:35 2011 -0800 @@ -314,7 +314,7 @@ return s:ListRepoFiles(a:ArgLead, a:CmdLine, a:CursorPos) endfunction -call s:AddMainCommand("-bang -complete=customlist,s:CompleteHg -nargs=* Hg :execute s:Hg(0, )") +call s:AddMainCommand("-bang -complete=customlist,s:CompleteHg -nargs=* Hg :call s:Hg(0, )") " }}} @@ -354,11 +354,11 @@ " Add some handy mappings. nnoremap :call search('^[MARC\!\?I ]\s.', 'We') nnoremap :call search('^[MARC\!\?I ]\s.','Wbe') - nnoremap :execute HgStatus_FileEdit() - nnoremap :execute HgStatus_FileDiff(0) - nnoremap :execute HgStatus_FileDiff(1) - nnoremap :execute HgStatus_FileAdd() - nnoremap :execute HgStatus_Refresh() + nnoremap :call HgStatus_FileEdit() + nnoremap :call HgStatus_FileDiff(0) + nnoremap :call HgStatus_FileDiff(1) + nnoremap :call HgStatus_FileAdd() + nnoremap :call HgStatus_Refresh() nnoremap q :bdelete " Make sure the file is deleted with the buffer. @@ -442,7 +442,7 @@ return matchstr(l:line, '\v^[MARC\!\?I ]') endfunction -call s:AddMainCommand("Hgstatus :execute s:HgStatus()") +call s:AddMainCommand("Hgstatus :call s:HgStatus()") " }}} @@ -595,8 +595,8 @@ autocmd BufWinLeave * call s:HgDiff_CleanUp() augroup end -call s:AddMainCommand("-nargs=* -complete=customlist,s:ListRepoFiles Hgdiff :execute s:HgDiff('%:p', 0, )") -call s:AddMainCommand("-nargs=* -complete=customlist,s:ListRepoFiles Hgvdiff :execute s:HgDiff('%:p', 1, )") +call s:AddMainCommand("-nargs=* -complete=customlist,s:ListRepoFiles Hgdiff :call s:HgDiff('%:p', 0, )") +call s:AddMainCommand("-nargs=* -complete=customlist,s:ListRepoFiles Hgvdiff :call s:HgDiff('%:p', 1, )") " }}} @@ -688,8 +688,8 @@ endif endfunction -call s:AddMainCommand("-bang Hgcommit :execute s:HgCommit(0, 0)") -call s:AddMainCommand("-bang Hgvcommit :execute s:HgCommit(0, 1)") +call s:AddMainCommand("-bang Hgcommit :call s:HgCommit(0, 0)") +call s:AddMainCommand("-bang Hgvcommit :call s:HgCommit(0, 1)") " }}}