mirror of
https://github.com/tmux/tmux.git
synced 2025-04-04 23:28:51 +00:00
Merge branch 'obsd-master' into master
This commit is contained in:
commit
03054598df
@ -120,8 +120,6 @@ cmd_display_menu_get_position(struct client *tc, struct cmdq_item *item,
|
|||||||
if (sr != NULL)
|
if (sr != NULL)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (line == lines)
|
|
||||||
ranges = &tc->status.entries[0].ranges;
|
|
||||||
|
|
||||||
if (sr != NULL) {
|
if (sr != NULL) {
|
||||||
format_add(ft, "popup_window_status_line_x", "%u",
|
format_add(ft, "popup_window_status_line_x", "%u",
|
||||||
|
@ -772,7 +772,7 @@ cmd_parse_expand_alias(struct cmd_parse_command *cmd,
|
|||||||
TAILQ_REMOVE(&cmd->arguments, first, entry);
|
TAILQ_REMOVE(&cmd->arguments, first, entry);
|
||||||
cmd_parse_free_argument(first);
|
cmd_parse_free_argument(first);
|
||||||
|
|
||||||
after = TAILQ_NEXT(TAILQ_FIRST(&last->arguments), entry);
|
after = TAILQ_FIRST(&last->arguments);
|
||||||
TAILQ_FOREACH_SAFE(arg, &cmd->arguments, entry, arg1) {
|
TAILQ_FOREACH_SAFE(arg, &cmd->arguments, entry, arg1) {
|
||||||
TAILQ_REMOVE(&cmd->arguments, arg, entry);
|
TAILQ_REMOVE(&cmd->arguments, arg, entry);
|
||||||
if (after == NULL)
|
if (after == NULL)
|
||||||
|
@ -179,12 +179,12 @@ cmd_source_file_exec(struct cmd *self, struct cmdq_item *item)
|
|||||||
free(pattern);
|
free(pattern);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
free(expanded);
|
|
||||||
free(pattern);
|
free(pattern);
|
||||||
|
|
||||||
for (j = 0; j < g.gl_pathc; j++)
|
for (j = 0; j < g.gl_pathc; j++)
|
||||||
cmd_source_file_add(cdata, g.gl_pathv[j]);
|
cmd_source_file_add(cdata, g.gl_pathv[j]);
|
||||||
}
|
}
|
||||||
|
free(expanded);
|
||||||
|
|
||||||
cdata->after = item;
|
cdata->after = item;
|
||||||
cdata->retval = retval;
|
cdata->retval = retval;
|
||||||
|
4
file.c
4
file.c
@ -555,7 +555,7 @@ file_write_open(struct client_files *files, struct tmuxpeer *peer,
|
|||||||
log_debug("open write file %d %s", msg->stream, path);
|
log_debug("open write file %d %s", msg->stream, path);
|
||||||
|
|
||||||
find.stream = msg->stream;
|
find.stream = msg->stream;
|
||||||
if ((cf = RB_FIND(client_files, files, &find)) != NULL) {
|
if (RB_FIND(client_files, files, &find) != NULL) {
|
||||||
error = EBADF;
|
error = EBADF;
|
||||||
goto reply;
|
goto reply;
|
||||||
}
|
}
|
||||||
@ -714,7 +714,7 @@ file_read_open(struct client_files *files, struct tmuxpeer *peer,
|
|||||||
log_debug("open read file %d %s", msg->stream, path);
|
log_debug("open read file %d %s", msg->stream, path);
|
||||||
|
|
||||||
find.stream = msg->stream;
|
find.stream = msg->stream;
|
||||||
if ((cf = RB_FIND(client_files, files, &find)) != NULL) {
|
if (RB_FIND(client_files, files, &find) != NULL) {
|
||||||
error = EBADF;
|
error = EBADF;
|
||||||
goto reply;
|
goto reply;
|
||||||
}
|
}
|
||||||
|
@ -277,7 +277,7 @@ server_client_open(struct client *c, char **cause)
|
|||||||
static void
|
static void
|
||||||
server_client_attached_lost(struct client *c)
|
server_client_attached_lost(struct client *c)
|
||||||
{
|
{
|
||||||
struct session *s = c->session;
|
struct session *s;
|
||||||
struct window *w;
|
struct window *w;
|
||||||
struct client *loop;
|
struct client *loop;
|
||||||
struct client *found;
|
struct client *found;
|
||||||
|
Loading…
Reference in New Issue
Block a user