Permalink
Browse files

test for mapleader existance before dereferencing it

  • Loading branch information...
dahu committed Nov 20, 2012
1 parent 894c5c1 commit 25753e1fc8412d85f80304ad19eb4d9d071bc419
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugin/fanfingtastic.vim
View
@@ -301,7 +301,7 @@ for m in ['n', 'x', 'o']
for c in ['f', 'F', 't', 'T', ';', ',']
if !hasmapto('<Plug>fanfingtastic_' . c, m)
if !exists('g:runVimTests')
- if (c == g:mapleader) && (g:fanfingtastic_map_over_leader == 0)
+ if exists('g:mapleader') && (c == g:mapleader) && (g:fanfingtastic_map_over_leader == 0)
continue
endif
endif

0 comments on commit 25753e1

Please sign in to comment.