aboutsummaryrefslogtreecommitdiff
path: root/options-table.c
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 /options-table.c
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 'options-table.c')
-rw-r--r--options-table.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/options-table.c b/options-table.c
index 91b4d747..101490e7 100644
--- a/options-table.c
+++ b/options-table.c
@@ -754,7 +754,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."
},