From fd25d358681a8373e67d4f3649628913dcd87000 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 15 Nov 2011 23:24:04 +0000 Subject: Move word-separators to be a session rather than window option, from Ben Boeckel. --- window-copy.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'window-copy.c') 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; -- cgit