update and upgrade plug
This commit is contained in:
parent
1d19ea2bca
commit
f99a676694
@ -508,14 +508,17 @@ function! s:lod_map(map, names, prefix)
|
|||||||
endif
|
endif
|
||||||
let extra .= nr2char(c)
|
let extra .= nr2char(c)
|
||||||
endwhile
|
endwhile
|
||||||
if v:count
|
|
||||||
call feedkeys(v:count, 'n')
|
let prefix = v:count ? v:count : ''
|
||||||
endif
|
let prefix .= '"'.v:register.a:prefix
|
||||||
call feedkeys('"'.v:register, 'n')
|
|
||||||
if mode(1) == 'no'
|
if mode(1) == 'no'
|
||||||
call feedkeys(v:operator)
|
if v:operator == 'c'
|
||||||
|
let prefix = "\<esc>" . prefix
|
||||||
endif
|
endif
|
||||||
call feedkeys(a:prefix . substitute(a:map, '^<Plug>', "\<Plug>", '') . extra)
|
let prefix .= v:operator
|
||||||
|
endif
|
||||||
|
call feedkeys(prefix, 'n')
|
||||||
|
call feedkeys(substitute(a:map, '^<Plug>', "\<Plug>", '') . extra)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! plug#(repo, ...)
|
function! plug#(repo, ...)
|
||||||
@ -1086,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 New Issue
Block a user