diff options
author | nicm <nicm> | 2019-04-02 08:45:32 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2019-04-02 11:11:12 +0100 |
commit | bbcfee362fdf8d39501131d3a3f8739dacd5c66e (patch) | |
tree | 99986b5225c75ef6a274f4ba71fcdb3d0f01cdae /tmux.h | |
parent | 6d071c468cbed78426eebdaab0639dac873cd39f (diff) | |
download | rtmux-bbcfee362fdf8d39501131d3a3f8739dacd5c66e.tar.gz rtmux-bbcfee362fdf8d39501131d3a3f8739dacd5c66e.tar.bz2 rtmux-bbcfee362fdf8d39501131d3a3f8739dacd5c66e.zip |
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.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2103,8 +2103,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 *); |