diff options
author | nicm <nicm> | 2021-06-10 07:56:47 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-06-10 07:56:47 +0000 |
commit | 77b1290698e3bc3ea8edeadb96fd483af26efdfe (patch) | |
tree | 55e82b34e110926914e21fdd7f09f6cd90526537 /options-table.c | |
parent | 77bd6b9ec32bfbc7fbf4de09cae1ce7ea7f3ac35 (diff) | |
download | rtmux-77b1290698e3bc3ea8edeadb96fd483af26efdfe.tar.gz rtmux-77b1290698e3bc3ea8edeadb96fd483af26efdfe.tar.bz2 rtmux-77b1290698e3bc3ea8edeadb96fd483af26efdfe.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 'options-table.c')
-rw-r--r-- | options-table.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/options-table.c b/options-table.c index 73c7fd63..01880d62 100644 --- a/options-table.c +++ b/options-table.c @@ -755,7 +755,11 @@ const struct options_table_entry options_table[] = { { .name = "word-separators", .type = OPTIONS_TABLE_STRING, .scope = OPTIONS_TABLE_SESSION, - .default_str = " ", + /* + * The set of non-alphanumeric printable ASCII characters minus the + * underscore. + */ + .default_str = "!\"#$%&'()*+,-./:;<=>?@[\\]^`{|}~", .text = "Characters considered to separate words." }, |