aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2019-04-02 08:45:32 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2019-04-02 11:11:12 +0100
commitbbcfee362fdf8d39501131d3a3f8739dacd5c66e (patch)
tree99986b5225c75ef6a274f4ba71fcdb3d0f01cdae /tmux.h
parent6d071c468cbed78426eebdaab0639dac873cd39f (diff)
downloadrtmux-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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tmux.h b/tmux.h
index c1f18857..d7f38199 100644
--- a/tmux.h
+++ b/tmux.h
@@ -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 *);