aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugin/insert_suspend_hlsearch.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/insert_suspend_hlsearch.vim b/plugin/insert_suspend_hlsearch.vim
index cf096d5..a5d8fd1 100644
--- a/plugin/insert_suspend_hlsearch.vim
+++ b/plugin/insert_suspend_hlsearch.vim
@@ -18,8 +18,8 @@ let g:loaded_insert_suspend_hlsearch = 1
" disable it if enabled. Note that :nohlsearch does not work for this; see
" :help autocmd-searchpat.
function s:HlsearchSuspend()
- let s:hlsearch = &hlsearch
- if s:hlsearch
+ let s:hlsearch_save = &hlsearch
+ if s:hlsearch_save
set nohlsearch
endif
endfunction
@@ -27,7 +27,7 @@ endfunction
" Restore the value of 'hlsearch' from the last time s:HlsearchSuspend was
" called.
function s:HlsearchRestore()
- if s:hlsearch
+ if s:hlsearch_save
set hlsearch
endif
endfunction