diff options
author | 2019-05-26 17:34:45 +0000 | |
---|---|---|
committer | 2019-05-26 17:34:45 +0000 | |
commit | 7db4c59712a6b466e64bbec88a96c009defa3ab9 (patch) | |
tree | 5dc9fe48afbb3b774474f2f7d017f68be5204293 /usr.bin/tmux/tmux.h | |
parent | reflect current reality (diff) | |
download | wireguard-openbsd-7db4c59712a6b466e64bbec88a96c009defa3ab9.tar.xz wireguard-openbsd-7db4c59712a6b466e64bbec88a96c009defa3ab9.zip |
Add formats for word and line under the mouse and use them to add some
items to the pane menu.
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r-- | usr.bin/tmux/tmux.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h index cde11dc618a..2a18becbf95 100644 --- a/usr.bin/tmux/tmux.h +++ b/usr.bin/tmux/tmux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.905 2019/05/25 07:18:20 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.906 2019/05/26 17:34:45 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -2219,6 +2219,7 @@ void grid_duplicate_lines(struct grid *, u_int, struct grid *, u_int, void grid_reflow(struct grid *, 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); +u_int grid_line_length(struct grid *, u_int); /* grid-view.c */ void grid_view_get_cell(struct grid *, u_int, u_int, struct grid_cell *); @@ -2583,6 +2584,7 @@ struct utf8_data *utf8_fromcstr(const char *); char *utf8_tocstr(struct utf8_data *); u_int utf8_cstrwidth(const char *); char *utf8_padcstr(const char *, u_int); +int utf8_cstrhas(const char *, const struct utf8_data *); /* procname.c */ char *get_proc_name(int, char *); @@ -2598,7 +2600,7 @@ __dead void printflike(1, 2) fatal(const char *, ...); __dead void printflike(1, 2) fatalx(const char *, ...); /* menu.c */ -struct menu *menu_create(const char *, struct client *, +struct menu *menu_create(const char *, struct cmdq_item *, struct client *, struct cmd_find_state *, const char *); void menu_free(struct menu *); int menu_display(struct menu *, int, struct cmdq_item *, u_int, |