diff options
author | nicm <nicm> | 2019-04-02 08:45:32 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-04-02 08:45:32 +0000 |
commit | ffa4d489676f40582b63c1791d3bf5d3b75d8421 (patch) | |
tree | 84a7d46b769da7c6e84da3e8a7a053871218eaa6 /tmux.h | |
parent | 792fcb1dbfbc23b65422753cf8d2e1bb1ddd3738 (diff) | |
download | rtmux-ffa4d489676f40582b63c1791d3bf5d3b75d8421.tar.gz rtmux-ffa4d489676f40582b63c1791d3bf5d3b75d8421.tar.bz2 rtmux-ffa4d489676f40582b63c1791d3bf5d3b75d8421.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
@@ -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 *); |