Hi,

This is on:

$ sysctl kern.version
kern.version=OpenBSD 5.3-current (GENERIC.MP) #18: Sat Jul  6 16:54:29 MDT 2013
    dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

I don't know if this is a typo or not, but the tiny change
makes "things better"(tm): Using the global session options
vs that of the window pane one.

The code I followed does this without the chagne:

  /* paraphrased */
  window_copy_key(...)
  windoe_copy_cursor_next_word_end(...)
  options_get_number(oo=<addr>, name="status-keys") {
      /* stuff */
      oo = &wp->window->options;

      if ((o = option_find(oo=<addr>, name="status-keys")) == NULL)
        fatalx("missing options")
   }


If the change is not correct, hopefully there is enough hint
in this post to help fix the issue correctly.

cheers,
--patrick


Index: window-copy.c
===================================================================
RCS file: /cvs/obsd/src/usr.bin/tmux/window-copy.c,v
retrieving revision 1.93
diff -u -p -u -p -r1.93 window-copy.c
--- window-copy.c       5 Jul 2013 14:44:06 -0000       1.93
+++ window-copy.c       10 Jul 2013 02:46:04 -0000
@@ -1894,7 +1894,7 @@ void
 window_copy_cursor_next_word_end(struct window_pane *wp, const char 
*separators)
 {
        struct window_copy_mode_data    *data = wp->modedata;
-       struct options                  *oo = &wp->window->options;
+       struct options                  *oo = &global_s_options;
        struct screen                   *back_s = data->backing;
        u_int                            px, py, xx, yy;
        int                              expected = 1;

Reply via email to