Skip to content

Commit 8efb0ba

Browse files
Ingo Heimbachntpeters
authored andcommitted
Fixed check for empty better-whitespace-operator key (#77)
Before this commit, `g:better_whitespace_operator` was checked for non-emptiness as a string which was always true. As a result, the whitespace operator could not be disabled.
1 parent 23e375c commit 8efb0ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/better-whitespace.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ command! CurrentLineWhitespaceOn call <SID>CurrentLineWhitespaceOn()
291291
command! -range=% NextTrailingWhitespace call <SID>GotoTrailingWhitespace(0, <line1>, <line2>)
292292
command! -range=% PrevTrailingWhitespace call <SID>GotoTrailingWhitespace(1, <line1>, <line2>)
293293

294-
if !empty('g:better_whitespace_operator')
294+
if !empty(g:better_whitespace_operator)
295295
function! s:StripWhitespaceMotion(type)
296296
call <SID>StripWhitespace(line("'["), line("']"))
297297
endfunction

0 commit comments

Comments
 (0)