You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expected that restoring the current view wouldn't change the view. That is, I thought that winrestview(winsaveview()) would effectively be a no-op, but it resulted in the view changing (presumably to satisfy the default scrolloff=5, which became unsatisfied after pressing <c-d> twice).
Environment (please complete the following information):
Vim version: 8.2.2434
OS: Ubuntu 21.04
Terminal: Konsole 20.12.3
The text was updated successfully, but these errors were encountered:
Describe the bug
Restoring a saved view doesn't work with long lines and a view not observing
scrolloff
(a state that can be entered through e.g.,<c-d>
).To Reproduce
Detailed steps to reproduce the behavior:
vim --clean
(orgvim --clean
, etc.)example.txt
:set lines=40
:set columns=80
<c-d><c-d>
:call winrestview(winsaveview())
Expected behavior
I expected that restoring the current view wouldn't change the view. That is, I thought that
winrestview(winsaveview())
would effectively be a no-op, but it resulted in the view changing (presumably to satisfy the defaultscrolloff=5
, which became unsatisfied after pressing<c-d>
twice).Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: