[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.148 and 1.149

version 1.148, 2016/01/19 15:59:12 version 1.149, 2016/06/06 07:23:36
Line 257 
Line 257 
         struct session  *s = c->session;          struct session  *s = c->session;
         struct winlink  *wl;          struct winlink  *wl;
         struct options  *oo;          struct options  *oo;
         size_t           len;          const char      *sep;
           size_t           seplen;
   
         x += c->wlmouse;          x += c->wlmouse;
         RB_FOREACH(wl, winlinks, &s->windows) {          RB_FOREACH(wl, winlinks, &s->windows) {
                 oo = wl->window->options;                  oo = wl->window->options;
                 len = strlen(options_get_string(oo, "window-status-separator"));  
   
                   sep = options_get_string(oo, "window-status-separator");
                   seplen = screen_write_cstrlen("%s", sep);
   
                 if (x < wl->status_width)                  if (x < wl->status_width)
                         return (wl->window);                          return (wl->window);
                 x -= wl->status_width + len;                  x -= wl->status_width + seplen;
         }          }
         return (NULL);          return (NULL);
 }  }
Line 344 
Line 347 
   
                 oo = wl->window->options;                  oo = wl->window->options;
                 sep = options_get_string(oo, "window-status-separator");                  sep = options_get_string(oo, "window-status-separator");
                 seplen = screen_write_strlen("%s", sep);                  seplen = screen_write_cstrlen("%s", sep);
                 wlwidth += wl->status_width + seplen;                  wlwidth += wl->status_width + seplen;
         }          }
   
Line 359 
Line 362 
   
                 oo = wl->window->options;                  oo = wl->window->options;
                 sep = options_get_string(oo, "window-status-separator");                  sep = options_get_string(oo, "window-status-separator");
                 screen_write_nputs(&ctx, -1, &stdgc, "%s", sep);                  screen_write_cnputs(&ctx, -1, &stdgc, "%s", sep);
         }          }
         screen_write_stop(&ctx);          screen_write_stop(&ctx);
   

Legend:
Removed from v.1.148  
changed lines
  Added in v.1.149