[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.65 and 1.66

version 1.65, 2010/12/11 16:05:57 version 1.66, 2010/12/11 16:13:15
Line 865 
Line 865 
 {  {
         struct paste_buffer     *pb;          struct paste_buffer     *pb;
         char                    *s, *first, *last, word[64], swapc;          char                    *s, *first, *last, word[64], swapc;
           const char              *histstr;
         u_char                   ch;          u_char                   ch;
         size_t                   size, n, off, idx;          size_t                   size, n, off, idx;
   
Line 977 
Line 978 
                 }                  }
                 break;                  break;
         case MODEKEYEDIT_HISTORYUP:          case MODEKEYEDIT_HISTORYUP:
                 s = status_prompt_up_history(&c->prompt_hindex);                  histstr = status_prompt_up_history(&c->prompt_hindex);
                 if (s == NULL)                  if (histstr == NULL)
                         break;                          break;
                 xfree(c->prompt_buffer);                  xfree(c->prompt_buffer);
                 c->prompt_buffer = xstrdup(s);                  c->prompt_buffer = xstrdup(histstr);
                 c->prompt_index = strlen(c->prompt_buffer);                  c->prompt_index = strlen(c->prompt_buffer);
                 c->flags |= CLIENT_STATUS;                  c->flags |= CLIENT_STATUS;
                 break;                  break;
         case MODEKEYEDIT_HISTORYDOWN:          case MODEKEYEDIT_HISTORYDOWN:
                 s = status_prompt_down_history(&c->prompt_hindex);                  histstr = status_prompt_down_history(&c->prompt_hindex);
                 if (s == NULL)                  if (histstr == NULL)
                         break;                          break;
                 xfree(c->prompt_buffer);                  xfree(c->prompt_buffer);
                 c->prompt_buffer = xstrdup(s);                  c->prompt_buffer = xstrdup(histstr);
                 c->prompt_index = strlen(c->prompt_buffer);                  c->prompt_index = strlen(c->prompt_buffer);
                 c->flags |= CLIENT_STATUS;                  c->flags |= CLIENT_STATUS;
                 break;                  break;

Legend:
Removed from v.1.65  
changed lines
  Added in v.1.66