Merge pull request #522 from jmatth/fix-visualhostkey
Fixing E684 when VisualHostKey is enabled for ssh
This commit is contained in:
commit
6454158846
1 changed files with 1 additions and 1 deletions
2
plug.vim
2
plug.vim
|
@ -1089,7 +1089,7 @@ function! s:job_handler(job_id, data, event) abort
|
||||||
|
|
||||||
if a:event == 'stdout'
|
if a:event == 'stdout'
|
||||||
let complete = empty(a:data[-1])
|
let complete = empty(a:data[-1])
|
||||||
let lines = map(filter(a:data, 'len(v:val) > 0'), 'split(v:val, "[\r\n]")[-1]')
|
let lines = map(filter(a:data, 'v:val =~ "[^\r\n]"'), 'split(v:val, "[\r\n]")[-1]')
|
||||||
call extend(self.lines, lines)
|
call extend(self.lines, lines)
|
||||||
let self.result = join(self.lines, "\n")
|
let self.result = join(self.lines, "\n")
|
||||||
if !complete
|
if !complete
|
||||||
|
|
Loading…
Reference in a new issue