Mercurial > vim
changeset 14:6ee7fce1cba8
[x] M plugins/hghelp/hghelp.vim
[ ] ? tmp
| author | Luka Sitas <lsitas@avatarasoftware.com> |
|---|---|
| date | Tue, 02 Dec 2025 12:01:08 -0500 |
| parents | 027a85d0e60e |
| children | 7edd5f6fe136 |
| files | plugins/hghelp/hghelp.vim |
| diffstat | 1 files changed, 15 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/hghelp/hghelp.vim Tue Dec 02 11:53:47 2025 -0500 +++ b/plugins/hghelp/hghelp.vim Tue Dec 02 12:01:08 2025 -0500 @@ -246,10 +246,21 @@ echom "hg commit failed:" echom l:out echohl None - else - echom "hg commit succeeded." + return endif - " Close the commit tab - tabclose + echom "hg commit succeeded." + + " Close only the commit UI buffers in this tab + try + for l:w in range(1, winnr('$')) + execute l:w . 'wincmd w' + if get(b:, 'hgcommit_type', '') ==# 'filelist' + bwipeout! + elseif get(b:, 'hgcommit_type', '') ==# 'message' + bwipeout! + endif + endfor + catch /^Vim\%((\a\+)\)\=:E/ + endtry endfunction
