1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-17 19:40:27 +01:00

Delete empty lines silently, closes #27

This commit is contained in:
Jan Larres
2011-06-24 12:37:01 +12:00
parent 5da16328b6
commit e979e9abcd

View File

@@ -2087,7 +2087,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 'silent ' . linenr . 'delete _'
else
break
endif