aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2021-05-13 08:49:58 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2021-05-13 08:49:58 +0100
commit022d0210c5afa4e516183bf19715316ccca5d240 (patch)
treec4245f692cfed0bf1bd38db6c612ac9f07569058 /tmux.h
parentf03b27c72be01ad1934079d1b6907f94efff9dea (diff)
downloadrtmux-022d0210c5afa4e516183bf19715316ccca5d240.tar.gz
rtmux-022d0210c5afa4e516183bf19715316ccca5d240.tar.bz2
rtmux-022d0210c5afa4e516183bf19715316ccca5d240.zip
More accurate vi(1) word navigation in copy mode and on the status line. This
changes the meaning of the word-separators option - setting it to the empty string is equivalent to the previous behavior. From Will Noble in GitHub issue 2693.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index e7cd205a..b775c219 100644
--- a/tmux.h
+++ b/tmux.h
@@ -131,6 +131,7 @@ struct winlink;
#define KEYC_CURSOR 0x04000000000000ULL
#define KEYC_IMPLIED_META 0x08000000000000ULL
#define KEYC_BUILD_MODIFIERS 0x10000000000000ULL
+#define KEYC_VI 0x20000000000000ULL
/* Masks for key bits. */
#define KEYC_MASK_MODIFIERS 0x00f00000000000ULL
@@ -590,6 +591,9 @@ struct msg_write_close {
int stream;
};
+/* Character classes. */
+#define WHITESPACE " "
+
/* Mode keys. */
#define MODEKEY_EMACS 0
#define MODEKEY_VI 1
@@ -2640,7 +2644,7 @@ void grid_reader_cursor_end_of_line(struct grid_reader *, int, int);
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, int);
int grid_reader_cursor_jump(struct grid_reader *,
const struct utf8_data *);
int grid_reader_cursor_jump_back(struct grid_reader *,