Mercurial > vim
comparison plugins/hghelp/hghelp.vim @ 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 |
comparison
equal
deleted
inserted
replaced
| 13:027a85d0e60e | 14:6ee7fce1cba8 |
|---|---|
| 244 if l:status != 0 | 244 if l:status != 0 |
| 245 echohl ErrorMsg | 245 echohl ErrorMsg |
| 246 echom "hg commit failed:" | 246 echom "hg commit failed:" |
| 247 echom l:out | 247 echom l:out |
| 248 echohl None | 248 echohl None |
| 249 else | 249 return |
| 250 echom "hg commit succeeded." | 250 endif |
| 251 endif | 251 |
| 252 | 252 echom "hg commit succeeded." |
| 253 " Close the commit tab | 253 |
| 254 tabclose | 254 " Close only the commit UI buffers in this tab |
| 255 endfunction | 255 try |
| 256 for l:w in range(1, winnr('$')) | |
| 257 execute l:w . 'wincmd w' | |
| 258 if get(b:, 'hgcommit_type', '') ==# 'filelist' | |
| 259 bwipeout! | |
| 260 elseif get(b:, 'hgcommit_type', '') ==# 'message' | |
| 261 bwipeout! | |
| 262 endif | |
| 263 endfor | |
| 264 catch /^Vim\%((\a\+)\)\=:E/ | |
| 265 endtry | |
| 266 endfunction |
