Steps to reproduce
Run this shell command:
vim -Nu NONE -S <(tee <<'EOF'
vim9script
&smoothscroll = true
&wrap = true
&lines = 24
vsplit
var text: string = 'the quick brown fox jumps over the lazy dog '
[text->repeat(&columns / text->strcharlen() + 1)]->repeat(&lines)->setline(1)
feedkeys('j'->repeat(&lines), 'xnt')
EOF
)
The cursor is drawn on the command-line, below the statusline .
Expected behavior
The cursor is drawn on the last line of the buffer, above the statusline.
Version of Vim
9.0 Included patches: 1-662
Environment
Operating system: Ubuntu 20.04.5 LTS
Terminal: XTerm(353)
Value of $TERM: xterm-256color
Shell: GNU bash, version 5.0.17
Gif
Additional context
The issue disappears if we reset 'smoothscroll'
.
The issue seems to be influenced by &lines
. For example, I can't reproduce when &lines = 10
; but I can when &lines = 24
.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
I tried this and a few variants, but I cannot reproduce.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
I'm on 9.0.669 and I can still reliably reproduce. But as mentioned earlier, it depends on the number of lines. For me, it works with 24 lines.
I wonder whether the font size also affects the issue. I can reproduce in xterm, with no config:
$ xrdb /dev/null
$ xterm
$ HOME=/tmp vim -Nu NONE -i NONE -U NONE -S <(tee <<'EOF'
vim9script
&smoothscroll = true
&wrap = true
&lines = 24
vsplit
var text: string = 'the quick brown fox jumps over the lazy dog '
[text->repeat(&columns / text->strcharlen() + 1)]->repeat(&lines)->setline(1)
feedkeys('j'->repeat(&lines), 'xnt')
EOF
)
I press C-X C-E
in xterm to paste the last multiline shell command inside a Vim buffer, then ZZ
to run it.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
Also, if we maintain l
pressed, the cursor:
That's with &columns = 80
. With &columns = 100
, something similar happens; the cursor:
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
The number of columns also affects the issue. 80 columns and 24 lines works for me:
HOME=/tmp vim -Nu NONE -i NONE -U NONE -S <(tee <<'EOF'
vim9script
&smoothscroll = true
&wrap = true
&lines = 24
&columns = 80
vsplit
var text: string = 'the quick brown fox jumps over the lazy dog '
[text->repeat(&columns / text->strcharlen() + 1)]->repeat(&lines)->setline(1)
feedkeys('j'->repeat(&lines), 'xnt')
EOF
)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
I expect this to be fixed by patch 9.0.0671, please check.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
Yes, it is fixed as of Vim 9.0.0676, so closing.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
Closed #11288 as completed.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.