mirror of
https://github.com/preservim/tagbar.git
synced 2024-11-26 10:29:34 +08:00
Fix the scrolloff local setting in RenderKeepView (#697)
This commit is contained in:
parent
30b20fc87d
commit
99c22f1bb2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user