Use blackhole register when deleting lines
This commit is contained in:
1 parent
6e509db6ff
commit
cabaf7b431
1 file changed
+1
-1
@@ -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