mirror of
https://github.com/gryf/tagbar.git
synced 2026-10-06 21:50:36 +02:00
Fix the scrolloff local setting in RenderKeepView (#697)
This commit is contained in:
1 parent
30b20fc87d
commit
99c22f1bb2
1 file changed
+2
-2
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user