diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-01 10:30:08 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-01 10:30:08 +1200 |
commit | bc6b138b481b2fe44ad270073bec6571084301ab (patch) | |
tree | 803b5e67894e17d1bfc2824d98c75d7a23371fe4 | |
parent | Rename cache variable for clarity (diff) | |
download | vim-insert-suspend-hlsearch-bc6b138b481b2fe44ad270073bec6571084301ab.tar.gz vim-insert-suspend-hlsearch-bc6b138b481b2fe44ad270073bec6571084301ab.zip |
Clear cache variable once no longer needed
-rw-r--r-- | plugin/insert_suspend_hlsearch.vim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/insert_suspend_hlsearch.vim b/plugin/insert_suspend_hlsearch.vim index a5d8fd1..c177f04 100644 --- a/plugin/insert_suspend_hlsearch.vim +++ b/plugin/insert_suspend_hlsearch.vim @@ -30,6 +30,7 @@ function s:HlsearchRestore() if s:hlsearch_save set hlsearch endif + unlet s:hlsearch_save endfunction " Clear search highlighting as soon as I enter insert mode, and restore it |