aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-01 10:30:00 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-01 10:30:00 +1200
commit8e9f7cc813282dafbbf1e4ad281122066ced036e (patch)
treef6bf941b6542b2b03d5ee0fae3fa92e16682381c
parentRemove unneeded function returns (diff)
downloadvim-insert-suspend-hlsearch-8e9f7cc813282dafbbf1e4ad281122066ced036e.tar.gz
vim-insert-suspend-hlsearch-8e9f7cc813282dafbbf1e4ad281122066ced036e.zip
Rename cache variable for clarity
-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