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

Diff for /src/usr.bin/tmux/cmd.c between version 1.38 and 1.39

version 1.38, 2010/01/19 21:27:47 version 1.39, 2010/03/22 19:07:52
Line 45 
Line 45 
         &cmd_detach_client_entry,          &cmd_detach_client_entry,
         &cmd_display_message_entry,          &cmd_display_message_entry,
         &cmd_display_panes_entry,          &cmd_display_panes_entry,
         &cmd_down_pane_entry,  
         &cmd_find_window_entry,          &cmd_find_window_entry,
         &cmd_has_session_entry,          &cmd_has_session_entry,
         &cmd_if_shell_entry,          &cmd_if_shell_entry,
Line 109 
Line 108 
         &cmd_switch_client_entry,          &cmd_switch_client_entry,
         &cmd_unbind_key_entry,          &cmd_unbind_key_entry,
         &cmd_unlink_window_entry,          &cmd_unlink_window_entry,
         &cmd_up_pane_entry,  
         NULL          NULL
 };  };
   
Line 955 
Line 953 
         return (wl);          return (wl);
   
 lookup_string:  lookup_string:
           /* Try as next or previous pane. */
           if (paneptr[0] == '+' && paneptr[1] == '\0') {
                   *wpp = TAILQ_NEXT(wl->window->active, entry);
                   if (*wpp == NULL)
                           *wpp = TAILQ_FIRST(&wl->window->panes);
                   return (wl);
           }
           if (paneptr[0] == '-' && paneptr[1] == '\0') {
                   *wpp = TAILQ_PREV(wl->window->active, window_panes, entry);
                   if (*wpp == NULL)
                           *wpp = TAILQ_LAST(&wl->window->panes, window_panes);
                   return (wl);
           }
   
         /* Try pane string description. */          /* Try pane string description. */
         if ((lc = layout_find_string(s->curw->window, paneptr)) == NULL) {          if ((lc = layout_find_string(wl->window, paneptr)) == NULL) {
                 ctx->error(ctx, "can't find pane: %s", paneptr);                  ctx->error(ctx, "can't find pane: %s", paneptr);
                 goto error;                  goto error;
         }          }
         *wpp = lc->wp;          *wpp = lc->wp;
   
         xfree(winptr);          xfree(winptr);
         return (s->curw);          return (wl);
   
 no_period:  no_period:
         /* Try as a pane number alone. */          /* Try as a pane number alone. */

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39