diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2011-11-15 23:24:04 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2011-11-15 23:24:04 +0000 |
commit | fd25d358681a8373e67d4f3649628913dcd87000 (patch) | |
tree | 9ab3eac5bf58892756a447ae25c0fcf713e9de94 /window-copy.c | |
parent | 7c9bc377a351db561322353848be2ffeffef84db (diff) |
Move word-separators to be a session rather than window option, from Ben
Boeckel.
Diffstat (limited to 'window-copy.c')
-rw-r--r-- | window-copy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/window-copy.c b/window-copy.c index b9221405..212b5c3a 100644 --- a/window-copy.c +++ b/window-copy.c @@ -548,13 +548,13 @@ window_copy_key(struct window_pane *wp, struct session *sess, int key) break; case MODEKEYCOPY_NEXTWORD: word_separators = - options_get_string(&wp->window->options, "word-separators"); + options_get_string(&sess->options, "word-separators"); for (; np != 0; np--) window_copy_cursor_next_word(wp, word_separators); break; case MODEKEYCOPY_NEXTWORDEND: word_separators = - options_get_string(&wp->window->options, "word-separators"); + options_get_string(&sess->options, "word-separators"); for (; np != 0; np--) window_copy_cursor_next_word_end(wp, word_separators); break; @@ -564,7 +564,7 @@ window_copy_key(struct window_pane *wp, struct session *sess, int key) break; case MODEKEYCOPY_PREVIOUSWORD: word_separators = - options_get_string(&wp->window->options, "word-separators"); + options_get_string(&sess->options, "word-separators"); for (; np != 0; np--) window_copy_cursor_previous_word(wp, word_separators); break; |