mirror of
https://github.com/preservim/tagbar.git
synced 2025-02-14 21:42:46 +08:00
Delete empty lines into the black hole register to avoid clobbering others
This commit is contained in:
parent
c3f41cb2ab
commit
8fd7c138ca
|
@ -1852,7 +1852,7 @@ function! s:RenderContent(...)
|
|||
" Delete empty lines at the end of the buffer
|
||||
for linenr in range(line('$'), 1, -1)
|
||||
if getline(linenr) =~ '^$'
|
||||
execute linenr . 'delete'
|
||||
execute linenr . 'delete _'
|
||||
else
|
||||
break
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user