mirror of
https://github.com/neovim/neovim.git
synced 2025-11-24 19:20:39 +00:00
Problem: With ':set splitkeep=screen', cursor did't restore column
correctly when splitting a window on a line longer than the
last line on the screen (after v9.1.0707)
Solution: Restore cursor column in `win_fix_scroll()` since it may be
changed in `getvcol()` after 396fd1ec2956 (phanium).
Example:
```
echo longlonglongling\nshort | vim - -u NONE --cmd 'set
splitkeep=screen' +'norm $' +new +q
```
fixes: vim/vim#16968
closes: vim/vim#16971
7746348c5d
Co-authored-by: phanium <91544758+phanen@users.noreply.github.com>