diff 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
line wrap: on
line diff
--- a/autoload/lawrencium/status.vim	Mon Jun 13 21:55:40 2016 -0700
+++ b/autoload/lawrencium/status.vim	Wed Dec 07 21:33:18 2016 -0800
@@ -85,7 +85,7 @@
         let l:win_nr = bufwinnr(a:1)
         call lawrencium#trace("Switching back to status window ".l:win_nr)
         if l:win_nr < 0
-            call lawrencium#throw("Can't find the status window anymore!")
+            call lawrencium#throwerr("Can't find the status window anymore!")
         endif
         execute l:win_nr . 'wincmd w'
         " Delete everything in the buffer, and re-read the status into it.