Instead of fixing with the cursor position when the copied screen is

created, resize it and let the resize/reflow code fix it up and return
it. Solves various problems with cursor position and resizing when in
copy mode. With Anindya Mukherjee.
This commit is contained in:
nicm
2020-04-15 17:50:02 +00:00
parent 1e72f5ea43
commit 53a29a2ffa
3 changed files with 88 additions and 62 deletions

2
tmux.h
View File

@ -2437,6 +2437,8 @@ void screen_set_path(struct screen *, const char *);
void screen_push_title(struct screen *);
void screen_pop_title(struct screen *);
void screen_resize(struct screen *, u_int, u_int, int);
void screen_resize_cursor(struct screen *, u_int, u_int, int, int, u_int *,
u_int *);
void screen_set_selection(struct screen *, u_int, u_int, u_int, u_int,
u_int, int, struct grid_cell *);
void screen_clear_selection(struct screen *);