mirror of
https://github.com/junegunn/vim-plug.git
synced 2025-12-08 18:04:46 +08:00
Use blackhole register when deleting lines
This commit is contained in:
2
plug.vim
2
plug.vim
@@ -626,7 +626,7 @@ function! s:update_impl(pull, force, args) abort
|
|||||||
catch
|
catch
|
||||||
let lines = getline(4, '$')
|
let lines = getline(4, '$')
|
||||||
let printed = {}
|
let printed = {}
|
||||||
silent 4,$d
|
silent 4,$d _
|
||||||
for line in lines
|
for line in lines
|
||||||
let name = get(matchlist(line, '^. \([^:]\+\):'), 1, '')
|
let name = get(matchlist(line, '^. \([^:]\+\):'), 1, '')
|
||||||
if empty(name) || !has_key(printed, name)
|
if empty(name) || !has_key(printed, name)
|
||||||
|
|||||||
Reference in New Issue
Block a user