screen: showcmd should never move the cursor

Also restore the symmetry between grid_puts_line_start and
grid_puts_line_flush.
This commit is contained in:
Björn Linse
2019-06-13 18:46:15 +02:00
parent cc4d463cad
commit 21cf4b0ce6
3 changed files with 27 additions and 25 deletions

View File

@@ -412,7 +412,7 @@ void pum_redraw(void)
idx = i + pum_first;
attr = (idx == pum_selected) ? attr_select : attr_norm;
screen_puts_line_start(row);
grid_puts_line_start(&pum_grid, row);
// prepend a space if there is room
if (extra_space) {
@@ -564,7 +564,7 @@ void pum_redraw(void)
? attr_thumb : attr_scroll);
}
}
grid_puts_line_flush(&pum_grid, false);
grid_puts_line_flush(false);
row++;
}
}