Store and restore cursor position when copy mode is resized, from Anindya

Mukherjee.
This commit is contained in:
Nicholas Marriott
2020-05-05 10:20:57 +01:00
parent 1f6c00f8ef
commit e810f15272
4 changed files with 70 additions and 40 deletions

2
grid.c
View File

@ -1285,7 +1285,7 @@ grid_reflow(struct grid *gd, u_int sx)
/*
* If the line is exactly right or the first character is wider
* than the targe width, just move it across unchanged.
* than the target width, just move it across unchanged.
*/
if (width == sx || first > sx) {
grid_reflow_move(target, gl);