mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 15:08:35 +00:00
fix(edit): don't subtract msg_scrolled when removing double quote (#22630)
With msg_grid there is no need to subtract msg_scrolled.
This commit is contained in:
@@ -1510,14 +1510,14 @@ bool prompt_curpos_editable(void)
|
||||
// Undo the previous edit_putchar().
|
||||
void edit_unputchar(void)
|
||||
{
|
||||
if (pc_status != PC_STATUS_UNSET && pc_row >= msg_scrolled) {
|
||||
if (pc_status != PC_STATUS_UNSET) {
|
||||
if (pc_status == PC_STATUS_RIGHT) {
|
||||
curwin->w_wcol++;
|
||||
}
|
||||
if (pc_status == PC_STATUS_RIGHT || pc_status == PC_STATUS_LEFT) {
|
||||
redrawWinline(curwin, curwin->w_cursor.lnum);
|
||||
} else {
|
||||
grid_puts(&curwin->w_grid, pc_bytes, pc_row - msg_scrolled, pc_col, pc_attr);
|
||||
grid_puts(&curwin->w_grid, pc_bytes, pc_row, pc_col, pc_attr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user