Don't leave whitespace on empty lines
This was caused by complicated interactions with Vim. Fixes #15.
This commit is contained in:
parent
6be3cd37ed
commit
0a4d82b171
@ -297,12 +297,17 @@ function! s:InsideCommentOrString()
|
||||
endfunction
|
||||
|
||||
|
||||
function! s:OnBlankLine()
|
||||
return pyeval('not vim.current.line or vim.current.line.isspace()')
|
||||
endfunction
|
||||
|
||||
|
||||
function! s:InvokeCompletion()
|
||||
if &completefunc != "youcompleteme#Complete"
|
||||
return
|
||||
endif
|
||||
|
||||
if s:InsideCommentOrString()
|
||||
if s:InsideCommentOrString() || s:OnBlankLine()
|
||||
return
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user