When opening the command-line window with CTRL-F after typing a command that fills the screen width, the cursor was placed past the end of the line. Add check_cursor() after setting State to MODE_NORMAL so the cursor is adjusted to the last character.
Also fix the cmdwin prefix character (e.g. ':') being drawn on wrapped continuation rows. It should only appear on the first screen row of each buffer line.
https://github.com/vim/vim/pull/19964
(3 files)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@zeertzjq commented on this pull request.
In src/drawline.c:
> @@ -2051,9 +2051,10 @@ win_line(
if (wlv.draw_state == WL_CMDLINE - 1 && wlv.n_extra == 0)
{
wlv.draw_state = WL_CMDLINE;
- if (wp == cmdwin_win)
+ if (wp == cmdwin_win && wlv.row == wlv.startrow)
Shouldn't an empty space be drawn on continuation rows instead? Otherwise continuation rows will be offset by 1 cell to the left.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@h-east commented on this pull request.
In src/drawline.c:
> @@ -2051,9 +2051,10 @@ win_line(
if (wlv.draw_state == WL_CMDLINE - 1 && wlv.n_extra == 0)
{
wlv.draw_state = WL_CMDLINE;
- if (wp == cmdwin_win)
+ if (wp == cmdwin_win && wlv.row == wlv.startrow)
Fair point.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@h-east pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()