1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-17 11:30:28 +01:00

Fix the scrolloff local setting in RenderKeepView (#697)

This commit is contained in:
raven42
2020-10-30 15:56:36 -05:00
committed by GitHub
parent 30b20fc87d
commit 99c22f1bb2

View File

@@ -2123,13 +2123,13 @@ function! s:RenderKeepView(...) abort
call s:RenderContent()
let scrolloff_save = &scrolloff
set scrolloff=0
setlocal scrolloff=0
call cursor(topline, 1)
normal! zt
call cursor(line, curcol)
let &scrolloff = scrolloff_save
let &l:scrolloff = scrolloff_save
redraw
endfunction