"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "status.c" between
tmux-3.2.tar.gz and tmux-3.2a.tar.gz

About: tmux is a terminal multiplexer that lets you switch easily between several programs in one terminal.

status.c  (tmux-3.2):status.c  (tmux-3.2a)
skipping to change at line 229 skipping to change at line 229
} }
/* Get size of status line for client's session. 0 means off. */ /* Get size of status line for client's session. 0 means off. */
u_int u_int
status_line_size(struct client *c) status_line_size(struct client *c)
{ {
struct session *s = c->session; struct session *s = c->session;
if (c->flags & (CLIENT_STATUSOFF|CLIENT_CONTROL)) if (c->flags & (CLIENT_STATUSOFF|CLIENT_CONTROL))
return (0); return (0);
if (s == NULL)
return (options_get_number(global_s_options, "status"));
return (s->statuslines); return (s->statuslines);
} }
/* Get window at window list position. */ /* Get window at window list position. */
struct style_range * struct style_range *
status_get_range(struct client *c, u_int x, u_int y) status_get_range(struct client *c, u_int x, u_int y)
{ {
struct status_line *sl = &c->status; struct status_line *sl = &c->status;
struct style_range *sr; struct style_range *sr;
skipping to change at line 1301 skipping to change at line 1303
prefix = '+'; prefix = '+';
goto changed; goto changed;
default: default:
goto append_key; goto append_key;
} }
c->flags |= CLIENT_REDRAWSTATUS; c->flags |= CLIENT_REDRAWSTATUS;
return (0); return (0);
append_key: append_key:
if (key <= 0x1f || key >= KEYC_BASE) if (key <= 0x1f || (key >= KEYC_BASE && key < KEYC_BASE_END))
return (0); return (0);
if (key <= 0x7f) if (key <= 0x7f)
utf8_set(&tmp, key); utf8_set(&tmp, key);
else else
utf8_to_data(key, &tmp); utf8_to_data(key, &tmp);
c->prompt_buffer = xreallocarray(c->prompt_buffer, size + 2, c->prompt_buffer = xreallocarray(c->prompt_buffer, size + 2,
sizeof *c->prompt_buffer); sizeof *c->prompt_buffer);
if (c->prompt_index == size) { if (c->prompt_index == size) {
 End of changes. 2 change blocks. 
1 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)