From 022d0210c5afa4e516183bf19715316ccca5d240 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 13 May 2021 08:49:58 +0100 Subject: 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. --- options-table.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'options-table.c') 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." }, -- cgit