New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cursor drawn on command-line when 'smoothscroll' is enabled #11288
Comments
I tried this and a few variants, but I cannot reproduce. |
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:
I press |
Also, if we maintain
That's with
|
The number of columns also affects the issue. 80 columns and 24 lines works for me:
|
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.
Ah, I need to set 'scrolloff' to zero for this to happen.
Might be a duplicate of #11269.
…--
From "know your smileys":
(\___/)
(+'.'+) Bunny
(")_(")
/// Bram Moolenaar -- ***@***.*** -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|
I expect this to be fixed by patch 9.0.0671, please check. |
Yes, it is fixed as of Vim 9.0.0676, so closing. |
Steps to reproduce
Run this shell command:
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
.The text was updated successfully, but these errors were encountered: