Mercurial > vim-lawrencium
comparison autoload/lawrencium/status.vim @ 141:4d5f4233b04e
Only set `v:errmsg` for real errors, not exceptions.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 07 Dec 2016 21:33:18 -0800 |
parents | 652a6f5df0f3 |
children | c9169233d45a |
comparison
equal
deleted
inserted
replaced
140:652a6f5df0f3 | 141:4d5f4233b04e |
---|---|
83 function! lawrencium#status#HgStatusRefresh(...) abort | 83 function! lawrencium#status#HgStatusRefresh(...) abort |
84 if a:0 > 0 | 84 if a:0 > 0 |
85 let l:win_nr = bufwinnr(a:1) | 85 let l:win_nr = bufwinnr(a:1) |
86 call lawrencium#trace("Switching back to status window ".l:win_nr) | 86 call lawrencium#trace("Switching back to status window ".l:win_nr) |
87 if l:win_nr < 0 | 87 if l:win_nr < 0 |
88 call lawrencium#throw("Can't find the status window anymore!") | 88 call lawrencium#throwerr("Can't find the status window anymore!") |
89 endif | 89 endif |
90 execute l:win_nr . 'wincmd w' | 90 execute l:win_nr . 'wincmd w' |
91 " Delete everything in the buffer, and re-read the status into it. | 91 " Delete everything in the buffer, and re-read the status into it. |
92 " TODO: In theory I would only have to do `edit` like below when we're | 92 " TODO: In theory I would only have to do `edit` like below when we're |
93 " already in the window, but for some reason Vim just goes bonkers and | 93 " already in the window, but for some reason Vim just goes bonkers and |