Commits

Tamas Kovacs  committed 27c7d2e

Bugfix: check that b:au_curhold_set may is defined (it may not be when g:slimv_repl_split=0)

  • Participants
  • Parent commits 7540032

Comments (0)

Files changed (1)

File ftplugin/slimv.vim

 " slimv.vim:    The Superior Lisp Interaction Mode for VIM
 " Version:      0.9.10
-" Last Change:  13 Jan 2013
+" Last Change:  15 Jan 2013
 " Maintainer:   Tamas Kovacs <kovisoft at gmail dot com>
 " License:      This file is placed in the public domain.
 "               No warranty, express or implied.
 function! SlimvRefreshModeOff()
     execute "au! CursorHold"
     execute "au! CursorHoldI"
-    unlet b:au_curhold_set
+    if exists( 'b:au_curhold_set' )
+        unlet b:au_curhold_set
+    endif
 endfunction
 
 " Called when entering REPL buffer