Commit 7746348
patch 9.1.1238: wrong cursor column with 'set splitkeep=screen'
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 396fd1e (phanium).
Example:
```
echo longlonglongling\nshort | vim - -u NONE --cmd 'set
splitkeep=screen' +'norm $' +new +q
```
fixes: #16968
closes: #16971
Signed-off-by: phanium <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>1 parent 2726821 commit 7746348
3 files changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1979 | 1979 | | |
1980 | 1980 | | |
1981 | 1981 | | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
| 1989 | + | |
| 1990 | + | |
| 1991 | + | |
| 1992 | + | |
| 1993 | + | |
1982 | 1994 | | |
1983 | 1995 | | |
1984 | 1996 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
704 | 704 | | |
705 | 705 | | |
706 | 706 | | |
| 707 | + | |
| 708 | + | |
707 | 709 | | |
708 | 710 | | |
709 | 711 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7038 | 7038 | | |
7039 | 7039 | | |
7040 | 7040 | | |
7041 | | - | |
| 7041 | + | |
7042 | 7042 | | |
7043 | 7043 | | |
7044 | 7044 | | |
| |||
7052 | 7052 | | |
7053 | 7053 | | |
7054 | 7054 | | |
7055 | | - | |
| 7055 | + | |
| 7056 | + | |
7056 | 7057 | | |
7057 | 7058 | | |
7058 | 7059 | | |
| |||
0 commit comments