1
0
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:
Jan Larres
2011-04-08 12:53:50 +12:00
parent c3f41cb2ab
commit 8fd7c138ca

View File

@@ -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