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

Diff for /src/usr.bin/tmux/server-client.c between version 1.392 and 1.393

version 1.392, 2022/03/08 12:01:19 version 1.393, 2022/03/24 09:05:57
Line 43 
Line 43 
 static void     server_client_check_redraw(struct client *);  static void     server_client_check_redraw(struct client *);
 static void     server_client_check_modes(struct client *);  static void     server_client_check_modes(struct client *);
 static void     server_client_set_title(struct client *);  static void     server_client_set_title(struct client *);
   static void     server_client_set_path(struct client *);
 static void     server_client_reset_state(struct client *);  static void     server_client_reset_state(struct client *);
 static int      server_client_assume_paste(struct session *);  static int      server_client_assume_paste(struct session *);
 static void     server_client_update_latest(struct client *);  static void     server_client_update_latest(struct client *);
Line 2603 
Line 2604 
         }          }
   
         if (c->flags & CLIENT_ALLREDRAWFLAGS) {          if (c->flags & CLIENT_ALLREDRAWFLAGS) {
                 if (options_get_number(s->options, "set-titles"))                  if (options_get_number(s->options, "set-titles")) {
                         server_client_set_title(c);                          server_client_set_title(c);
                           server_client_set_path(c);
                   }
                 screen_redraw_screen(c);                  screen_redraw_screen(c);
         }          }
   
Line 2648 
Line 2651 
         free(title);          free(title);
   
         format_free(ft);          format_free(ft);
   }
   
   /* Set client path. */
   static void
   server_client_set_path(struct client *c)
   {
           struct session  *s = c->session;
           const char      *path;
   
           if (s->curw == NULL)
                   return;
           if (s->curw->window->active->base.path == NULL)
                   path = "";
           else
                   path = s->curw->window->active->base.path;
           if (c->path == NULL || strcmp(path, c->path) != 0) {
                   free(c->path);
                   c->path = xstrdup(path);
                   tty_set_path(&c->tty, c->path);
           }
 }  }
   
 /* Dispatch message from client. */  /* Dispatch message from client. */

Legend:
Removed from v.1.392  
changed lines
  Added in v.1.393