# HG changeset patch # User Luka Sitas # Date 1764694868 18000 # Node ID 6ee7fce1cba8e8f3d696d1f37ab1dc3dfcfb68e5 # Parent 027a85d0e60e9ab325e06f0c1ac36f209e47a0f2 [x] M plugins/hghelp/hghelp.vim [ ] ? tmp diff -r 027a85d0e60e -r 6ee7fce1cba8 plugins/hghelp/hghelp.vim --- 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