[BACK]Return to server-client.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/server-client.c between version 1.166 and 1.167

version 1.166, 2015/10/31 13:12:03 version 1.167, 2015/11/11 23:23:33
Line 801 
Line 801 
                 mode = (mode & ~ALL_MOUSE_MODES) | MODE_MOUSE_BUTTON;                  mode = (mode & ~ALL_MOUSE_MODES) | MODE_MOUSE_BUTTON;
   
         /*          /*
          * Set UTF-8 mouse input if required. If the terminal is UTF-8, the           * Set UTF-8 mouse input if required. If the terminal is UTF-8 and any
          * user has set mouse-utf8 and any mouse mode is in effect, turn on           * mouse mode is in effect, turn on UTF-8 mouse input. If the receiving
          * UTF-8 mouse input. If the receiving terminal hasn't requested it           * terminal hasn't requested it (that is, it isn't in s->mode), then
          * (that is, it isn't in s->mode), then it'll be converted in           * it'll be converted in input_mouse.
          * input_mouse.  
          */           */
         if ((c->tty.flags & TTY_UTF8) &&          if ((c->tty.flags & TTY_UTF8) && (mode & ALL_MOUSE_MODES))
             (mode & ALL_MOUSE_MODES) && options_get_number(oo, "mouse-utf8"))  
                 mode |= MODE_MOUSE_UTF8;                  mode |= MODE_MOUSE_UTF8;
         else          else
                 mode &= ~MODE_MOUSE_UTF8;                  mode &= ~MODE_MOUSE_UTF8;

Legend:
Removed from v.1.166  
changed lines
  Added in v.1.167