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

Diff for /src/usr.bin/tmux/window.c between version 1.26 and 1.27

version 1.26, 2009/09/20 14:58:12 version 1.27, 2009/10/09 07:27:00
Line 610 
Line 610 
 void  void
 window_pane_key(struct window_pane *wp, struct client *c, int key)  window_pane_key(struct window_pane *wp, struct client *c, int key)
 {  {
           struct window_pane      *wp2;
   
         if (wp->fd == -1 || !window_pane_visible(wp))          if (wp->fd == -1 || !window_pane_visible(wp))
                 return;                  return;
   
         if (wp->mode != NULL) {          if (wp->mode != NULL) {
                 if (wp->mode->key != NULL)                  if (wp->mode->key != NULL)
                         wp->mode->key(wp, c, key);                          wp->mode->key(wp, c, key);
         } else                  return;
                 input_key(wp, key);          }
   
           input_key(wp, key);
           if (options_get_number(&wp->window->options, "synchronize-panes")) {
                   TAILQ_FOREACH(wp2, &wp->window->panes, entry) {
                           if (wp2 == wp || wp2->mode != NULL)
                                   continue;
                           if (wp2->fd != -1 && window_pane_visible(wp2))
                                   input_key(wp2, key);
                   }
           }
 }  }
   
 void  void

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27