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

Diff for /src/usr.bin/tmux/status.c between version 1.29 and 1.30

version 1.29, 2009/09/01 09:11:05 version 1.30, 2009/09/02 06:33:20
Line 763 
Line 763 
 status_prompt_key(struct client *c, int key)  status_prompt_key(struct client *c, int key)
 {  {
         struct paste_buffer     *pb;          struct paste_buffer     *pb;
         char                    *s, *first, *last, word[64];          char                    *s, *first, *last, word[64], swapc;
         size_t                   size, n, off, idx;          size_t                   size, n, off, idx;
   
         size = strlen(c->prompt_buffer);          size = strlen(c->prompt_buffer);
Line 932 
Line 932 
                 }                  }
   
                 c->flags |= CLIENT_STATUS;                  c->flags |= CLIENT_STATUS;
                   break;
           case MODEKEYEDIT_TRANSPOSECHARS:
                   idx = c->prompt_index;
                   if (idx < size)
                           idx++;
                   if (idx >= 2) {
                           swapc = c->prompt_buffer[idx - 2];
                           c->prompt_buffer[idx - 2] = c->prompt_buffer[idx - 1];
                           c->prompt_buffer[idx - 1] = swapc;
                           c->prompt_index = idx;
                           c->flags |= CLIENT_STATUS;
                   }
                 break;                  break;
         case MODEKEYEDIT_ENTER:          case MODEKEYEDIT_ENTER:
                 if (*c->prompt_buffer != '\0')                  if (*c->prompt_buffer != '\0')

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30