mirror of
https://github.com/tmux/tmux.git
synced 2025-04-20 11:28:48 +00:00
Merge branch 'obsd-master'
This commit is contained in:
commit
ca5afb34bf
@ -688,8 +688,8 @@ control_write_pending(struct client *c, struct control_pane *cp, size_t limit)
|
|||||||
else
|
else
|
||||||
age = 0;
|
age = 0;
|
||||||
log_debug("%s: %s: output block %zu (age %llu) for %%%u "
|
log_debug("%s: %s: output block %zu (age %llu) for %%%u "
|
||||||
"(used %zu/%zu)", __func__, c->name, cb->size, age,
|
"(used %zu/%zu)", __func__, c->name, cb->size,
|
||||||
cp->pane, used, limit);
|
(unsigned long long)age, cp->pane, used, limit);
|
||||||
|
|
||||||
size = cb->size;
|
size = cb->size;
|
||||||
if (size > limit - used)
|
if (size > limit - used)
|
||||||
|
@ -555,6 +555,8 @@ input_key(struct screen *s, struct bufferevent *bev, key_code key)
|
|||||||
case KEYC_SHIFT|KEYC_META|KEYC_CTRL:
|
case KEYC_SHIFT|KEYC_META|KEYC_CTRL:
|
||||||
modifier = '8';
|
modifier = '8';
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
fatalx("invalid key modifiers: %llx", key);
|
||||||
}
|
}
|
||||||
xsnprintf(tmp, sizeof tmp, "\033[%llu;%cu", outkey, modifier);
|
xsnprintf(tmp, sizeof tmp, "\033[%llu;%cu", outkey, modifier);
|
||||||
bufferevent_write(bev, tmp, strlen(tmp));
|
bufferevent_write(bev, tmp, strlen(tmp));
|
||||||
|
@ -2853,6 +2853,7 @@ window_copy_search_jump(struct window_mode_entry *wme, struct grid *gd,
|
|||||||
free(sbuf);
|
free(sbuf);
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
free(sbuf);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (direction) {
|
if (direction) {
|
||||||
@ -2889,10 +2890,8 @@ window_copy_search_jump(struct window_mode_entry *wme, struct grid *gd,
|
|||||||
fx = gd->sx - 1;
|
fx = gd->sx - 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (regex) {
|
if (regex)
|
||||||
free(sbuf);
|
|
||||||
regfree(®);
|
regfree(®);
|
||||||
}
|
|
||||||
|
|
||||||
if (found) {
|
if (found) {
|
||||||
window_copy_scroll_to(wme, px, i, 1);
|
window_copy_scroll_to(wme, px, i, 1);
|
||||||
@ -3042,6 +3041,7 @@ window_copy_search_marks(struct window_mode_entry *wme, struct screen *ssp,
|
|||||||
free(sbuf);
|
free(sbuf);
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
free(sbuf);
|
||||||
}
|
}
|
||||||
tstart = get_timer();
|
tstart = get_timer();
|
||||||
|
|
||||||
@ -3139,10 +3139,8 @@ again:
|
|||||||
out:
|
out:
|
||||||
if (ssp == &ss)
|
if (ssp == &ss)
|
||||||
screen_free(&ss);
|
screen_free(&ss);
|
||||||
if (regex) {
|
if (regex)
|
||||||
free(sbuf);
|
|
||||||
regfree(®);
|
regfree(®);
|
||||||
}
|
|
||||||
return (1);
|
return (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -380,7 +380,7 @@ window_customize_build_options(struct window_customize_modedata *data,
|
|||||||
struct format_tree *ft, const char *filter, struct cmd_find_state *fs)
|
struct format_tree *ft, const char *filter, struct cmd_find_state *fs)
|
||||||
{
|
{
|
||||||
struct mode_tree_item *top;
|
struct mode_tree_item *top;
|
||||||
struct options_entry *o, *loop;
|
struct options_entry *o = NULL, *loop;
|
||||||
const char **list = NULL, *name;
|
const char **list = NULL, *name;
|
||||||
u_int size = 0, i;
|
u_int size = 0, i;
|
||||||
enum window_customize_scope scope;
|
enum window_customize_scope scope;
|
||||||
@ -1018,7 +1018,7 @@ window_customize_set_option(struct client *c,
|
|||||||
struct options *oo;
|
struct options *oo;
|
||||||
struct window_customize_itemdata *new_item;
|
struct window_customize_itemdata *new_item;
|
||||||
int flag, idx = item->idx;
|
int flag, idx = item->idx;
|
||||||
enum window_customize_scope scope;
|
enum window_customize_scope scope = WINDOW_CUSTOMIZE_NONE;
|
||||||
u_int choice;
|
u_int choice;
|
||||||
const char *name = item->name, *space = "";
|
const char *name = item->name, *space = "";
|
||||||
char *prompt, *value, *text;
|
char *prompt, *value, *text;
|
||||||
@ -1031,7 +1031,7 @@ window_customize_set_option(struct client *c,
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
oe = options_table_entry(o);
|
oe = options_table_entry(o);
|
||||||
if (~oe->scope & OPTIONS_TABLE_PANE)
|
if (oe != NULL && ~oe->scope & OPTIONS_TABLE_PANE)
|
||||||
pane = 0;
|
pane = 0;
|
||||||
if (oe != NULL && (oe->flags & OPTIONS_TABLE_IS_ARRAY)) {
|
if (oe != NULL && (oe->flags & OPTIONS_TABLE_IS_ARRAY)) {
|
||||||
scope = item->scope;
|
scope = item->scope;
|
||||||
|
Loading…
Reference in New Issue
Block a user