mirror of
https://github.com/gryf/tagbar.git
synced 2026-10-06 05:20:41 +02:00
Delete empty lines at the end of the tagbar buffer
This commit is contained in:
1 parent
c9b43b665a
commit
df31cc81cd
1 file changed
+9
@@ -1850,6 +1850,15 @@ function! s:RenderContent(...)
|
||||
" Print tags
|
||||
call s:PrintKinds(typeinfo, fileinfo)
|
||||
|
||||
" Delete empty lines at the end of the buffer
|
||||
for linenr in range(line('$'), 1, -1)
|
||||
if getline(linenr) =~ '^$'
|
||||
execute linenr . 'delete'
|
||||
else
|
||||
break
|
||||
endif
|
||||
endfor
|
||||
|
||||
setlocal nomodifiable
|
||||
|
||||
if !empty(s:known_files.getCurrent()) &&
|
||||
|
||||
Reference in new issue
Block a user