We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c63394d commit 844cebaCopy full SHA for 844ceba
plugin/better-whitespace.vim
@@ -118,7 +118,7 @@ endif
118
119
" Function that clears the search entries of BetterWhiteSpace by rolling back to the given index
120
function! s:RestoreSearchHistory(index)
121
- while histnr('search') > a:index
+ while histnr('search') > max([a:index, 0])
122
call histdel('search', -1)
123
endwhile
124
let @/ = histget('search', -1)
0 commit comments