mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-18 03:50:26 +01:00
Delete empty lines into the black hole register to avoid clobbering others
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user