Move jump commands to grid reader, make them UTF-8 aware, and tidy up,

from Anindya Mukherjee.
This commit is contained in:
nicm
2021-02-22 06:53:04 +00:00
parent b04f8acb70
commit 8986c8dfcd
4 changed files with 206 additions and 216 deletions

4
tmux.h
View File

@ -2589,6 +2589,10 @@ void grid_reader_cursor_next_word(struct grid_reader *, const char *);
void grid_reader_cursor_next_word_end(struct grid_reader *, const char *);
void grid_reader_cursor_previous_word(struct grid_reader *, const char *,
int);
int grid_reader_cursor_jump(struct grid_reader *,
const struct utf8_data *);
int grid_reader_cursor_jump_back(struct grid_reader *,
const struct utf8_data *);
/* grid-view.c */
void grid_view_get_cell(struct grid *, u_int, u_int, struct grid_cell *);