[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.176 and 1.177

version 1.176, 2018/02/22 11:42:41 version 1.177, 2018/08/19 16:45:03
Line 157 
Line 157 
                 return;                  return;
   
         if (c->message_string == NULL && c->prompt_string == NULL)          if (c->message_string == NULL && c->prompt_string == NULL)
                 c->flags |= CLIENT_STATUS;                  c->flags |= CLIENT_REDRAWSTATUS;
   
         timerclear(&tv);          timerclear(&tv);
         tv.tv_sec = options_get_number(s->options, "status-interval");          tv.tv_sec = options_get_number(s->options, "status-interval");
Line 615 
Line 615 
         }          }
   
         c->tty.flags |= (TTY_NOCURSOR|TTY_FREEZE);          c->tty.flags |= (TTY_NOCURSOR|TTY_FREEZE);
         c->flags |= CLIENT_STATUS;          c->flags |= CLIENT_REDRAWSTATUS;
 }  }
   
 /* Clear status line message. */  /* Clear status line message. */
Line 630 
Line 630 
   
         if (c->prompt_string == NULL)          if (c->prompt_string == NULL)
                 c->tty.flags &= ~(TTY_NOCURSOR|TTY_FREEZE);                  c->tty.flags &= ~(TTY_NOCURSOR|TTY_FREEZE);
         c->flags |= CLIENT_REDRAW; /* screen was frozen and may have changed */          c->flags |= CLIENT_ALLREDRAWFLAGS; /* was frozen and may have changed */
   
         screen_reinit(&c->status.status);          screen_reinit(&c->status.status);
 }  }
Line 734 
Line 734 
   
         if (~flags & PROMPT_INCREMENTAL)          if (~flags & PROMPT_INCREMENTAL)
                 c->tty.flags |= (TTY_NOCURSOR|TTY_FREEZE);                  c->tty.flags |= (TTY_NOCURSOR|TTY_FREEZE);
         c->flags |= CLIENT_STATUS;          c->flags |= CLIENT_REDRAWSTATUS;
   
         if ((flags & PROMPT_INCREMENTAL) && *tmp != '\0') {          if ((flags & PROMPT_INCREMENTAL) && *tmp != '\0') {
                 xasprintf(&cp, "=%s", tmp);                  xasprintf(&cp, "=%s", tmp);
Line 763 
Line 763 
         c->prompt_buffer = NULL;          c->prompt_buffer = NULL;
   
         c->tty.flags &= ~(TTY_NOCURSOR|TTY_FREEZE);          c->tty.flags &= ~(TTY_NOCURSOR|TTY_FREEZE);
         c->flags |= CLIENT_REDRAW; /* screen was frozen and may have changed */          c->flags |= CLIENT_ALLREDRAWFLAGS; /* was frozen and may have changed */
   
         screen_reinit(&c->status.status);          screen_reinit(&c->status.status);
 }  }
Line 791 
Line 791 
   
         c->prompt_hindex = 0;          c->prompt_hindex = 0;
   
         c->flags |= CLIENT_STATUS;          c->flags |= CLIENT_REDRAWSTATUS;
   
         free(tmp);          free(tmp);
         format_free(ft);          format_free(ft);
Line 938 
Line 938 
                         return (1);                          return (1);
                 case '\033': /* Escape */                  case '\033': /* Escape */
                         c->prompt_mode = PROMPT_COMMAND;                          c->prompt_mode = PROMPT_COMMAND;
                         c->flags |= CLIENT_STATUS;                          c->flags |= CLIENT_REDRAWSTATUS;
                         return (0);                          return (0);
                 }                  }
                 *new_key = key;                  *new_key = key;
Line 952 
Line 952 
         case 's':          case 's':
         case 'a':          case 'a':
                 c->prompt_mode = PROMPT_ENTRY;                  c->prompt_mode = PROMPT_ENTRY;
                 c->flags |= CLIENT_STATUS;                  c->flags |= CLIENT_REDRAWSTATUS;
                 break; /* switch mode and... */                  break; /* switch mode and... */
         case 'S':          case 'S':
                 c->prompt_mode = PROMPT_ENTRY;                  c->prompt_mode = PROMPT_ENTRY;
                 c->flags |= CLIENT_STATUS;                  c->flags |= CLIENT_REDRAWSTATUS;
                 *new_key = '\025'; /* C-u */                  *new_key = '\025'; /* C-u */
                 return (1);                  return (1);
         case 'i':          case 'i':
         case '\033': /* Escape */          case '\033': /* Escape */
                 c->prompt_mode = PROMPT_ENTRY;                  c->prompt_mode = PROMPT_ENTRY;
                 c->flags |= CLIENT_STATUS;                  c->flags |= CLIENT_REDRAWSTATUS;
                 return (0);                  return (0);
         }          }
   
Line 1357 
Line 1357 
                 goto append_key;                  goto append_key;
         }          }
   
         c->flags |= CLIENT_STATUS;          c->flags |= CLIENT_REDRAWSTATUS;
         return (0);          return (0);
   
 append_key:  append_key:
Line 1392 
Line 1392 
         }          }
   
 changed:  changed:
         c->flags |= CLIENT_STATUS;          c->flags |= CLIENT_REDRAWSTATUS;
         if (c->prompt_flags & PROMPT_INCREMENTAL) {          if (c->prompt_flags & PROMPT_INCREMENTAL) {
                 s = utf8_tocstr(c->prompt_buffer);                  s = utf8_tocstr(c->prompt_buffer);
                 xasprintf(&cp, "%c%s", prefix, s);                  xasprintf(&cp, "%c%s", prefix, s);

Legend:
Removed from v.1.176  
changed lines
  Added in v.1.177