Use the existing code in format.c to add foramts for word and line at

cursor position in copy mode, from Anindya Mukherjee.
This commit is contained in:
nicm
2019-10-23 07:42:05 +00:00
parent 56e5067c46
commit f7fb5df543
4 changed files with 67 additions and 25 deletions

2
tmux.h
View File

@ -1787,6 +1787,8 @@ void format_defaults_pane(struct format_tree *,
void format_defaults_paste_buffer(struct format_tree *,
struct paste_buffer *);
void format_lost_client(struct client *);
char *format_grid_word(struct grid *, u_int, u_int);
char *format_grid_line(struct grid *, u_int);
/* format-draw.c */
void format_draw(struct screen_write_ctx *,