Mercurial > vim
diff plugins/hghelp/hghelp.vim @ 7:34930197e9d4
Updating hg diff tool.
Adding support for global searching
| author | Luka Sitas <lsitas@avatarasoftware.com> |
|---|---|
| date | Thu, 30 Oct 2025 13:45:31 -0400 |
| parents | 3017fd33ad8b |
| children | 9c80955f0c6e |
line wrap: on
line diff
--- a/plugins/hghelp/hghelp.vim Tue Oct 28 15:26:12 2025 -0400 +++ b/plugins/hghelp/hghelp.vim Thu Oct 30 13:45:31 2025 -0400 @@ -13,18 +13,14 @@ let l:current_file = a:file !=# '' ? a:file : expand('%') let l:filetype = &filetype let l:temp_file = tempname() - execute 'tabnew' - execute 'silent !hg cat -r . ' . l:current_file . ' > ' . l:temp_file - execute 'edit ' . l:temp_file + let l:command = 'hg cat -r . ' . l:current_file . ' > ' . l:temp_file + let result = system(l:command . ' 2>&1') + execute 'tabe ' . l:temp_file execute 'setfiletype' l:filetype setlocal buftype=nofile bufhidden=wipe nobuflisted noswapfile execute 'vert diffsplit' l:current_file endfunction - - - - command HGDiff call s:OpenHgDiff(expand('%')) command Commit call s:CommitWithFormat()
