Mercurial > vim
diff plugins/hghelp/hghelp.vim @ 17:412c33afd395
Update for core and some minor fixes
| author | Luka Sitas <lsitas@avatarasoftware.com> |
|---|---|
| date | Fri, 05 Dec 2025 08:48:49 -0500 |
| parents | 7edd5f6fe136 |
| children | 203279635445 |
line wrap: on
line diff
--- a/plugins/hghelp/hghelp.vim Tue Dec 02 19:44:32 2025 -0500 +++ b/plugins/hghelp/hghelp.vim Fri Dec 05 08:48:49 2025 -0500 @@ -1,16 +1,6 @@ let g:hg_format_command = "" -function PopupCommand(command) - let buf = term_start(a:command, {'hidden': 1, 'term_finish': 'close'}) - let winid = popup_create(buf, {'minwidth': 120, 'minheight': 28}) -endfunction - -function! ExecuteCommand(command) - " a:command is a shell command string, e.g. 'hg status' - return system(a:command . ' 2>&1') -endfunction - function! s:CommitWithFormat() wa if exists("g:hg_format_command") && !empty(g:hg_format_command) @@ -21,6 +11,7 @@ call PopupCommand('hg commit') endfunction + function! s:OpenHgDiff(file) let l:current_file = a:file !=# '' ? a:file : expand('%') let l:filetype = &filetype
