mirror of
https://github.com/preservim/tagbar.git
synced 2025-02-14 21:42:46 +08:00
Delete empty lines at the end of the tagbar buffer
This commit is contained in:
parent
c9b43b665a
commit
df31cc81cd
|
@ -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()) &&
|
||||
|
|
Loading…
Reference in New Issue
Block a user