diff autoload/lawrencium/diff.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 065625e1bb31
children 5e72afea669c
line wrap: on
line diff
--- a/autoload/lawrencium/diff.vim	Mon Jun 13 21:55:40 2016 -0700
+++ b/autoload/lawrencium/diff.vim	Wed Dec 07 21:33:18 2016 -0800
@@ -127,7 +127,7 @@
     " It's needed because `diffoff` reverts those settings to their default
     " values, instead of their previous ones.
     if &diff
-        call lawrencium#throw("Calling diffthis too late on a buffer!")
+        call lawrencium#throwerr("Calling diffthis too late on a buffer!")
         return
     endif
     call lawrencium#trace('Enabling diff mode on ' . bufname('%'))