mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 21:56:57 +00:00
Store and restore cursor across reflow by working out a position based
on unwrapped lines, rather than a grid offset. Fixes problems reported by Thomas Sattler and Paul de Weerd.
This commit is contained in:
4
tmux.h
4
tmux.h
@ -2101,8 +2101,8 @@ char *grid_string_cells(struct grid *, u_int, u_int, u_int,
|
||||
void grid_duplicate_lines(struct grid *, u_int, struct grid *, u_int,
|
||||
u_int);
|
||||
void grid_reflow(struct grid *, u_int);
|
||||
u_int grid_to_offset(struct grid *, u_int, u_int);
|
||||
void grid_from_offset(struct grid *, u_int, u_int *, u_int *);
|
||||
void grid_wrap_position(struct grid *, u_int, u_int, u_int *, u_int *);
|
||||
void grid_unwrap_position(struct grid *, u_int *, u_int *, u_int, u_int);
|
||||
|
||||
/* grid-view.c */
|
||||
void grid_view_get_cell(struct grid *, u_int, u_int, struct grid_cell *);
|
||||
|
Reference in New Issue
Block a user