mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 03:08:46 +00:00
Sync OpenBSD patchset 1087:
Minor style nits - return ().
This commit is contained in:
parent
09e6b7c137
commit
e5b3858944
@ -75,7 +75,7 @@ cmd_find_window_match_flags(struct args *args)
|
|||||||
if (match_flags == 0)
|
if (match_flags == 0)
|
||||||
match_flags = CMD_FIND_WINDOW_ALL;
|
match_flags = CMD_FIND_WINDOW_ALL;
|
||||||
|
|
||||||
return match_flags;
|
return (match_flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -70,7 +70,7 @@ cmd_join_pane_key_binding(struct cmd *self, int key)
|
|||||||
int
|
int
|
||||||
cmd_join_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
|
cmd_join_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
|
||||||
{
|
{
|
||||||
return join_pane(self, ctx, self->entry == &cmd_join_pane_entry);
|
return (join_pane(self, ctx, self->entry == &cmd_join_pane_entry));
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -805,14 +805,14 @@ window_copy_key_numeric_prefix(struct window_pane *wp, int key)
|
|||||||
|
|
||||||
key &= KEYC_MASK_KEY;
|
key &= KEYC_MASK_KEY;
|
||||||
if (key < '0' || key > '9')
|
if (key < '0' || key > '9')
|
||||||
return 1;
|
return (1);
|
||||||
|
|
||||||
if (data->numprefix >= 100) /* no more than three digits */
|
if (data->numprefix >= 100) /* no more than three digits */
|
||||||
return 0;
|
return (0);
|
||||||
data->numprefix = data->numprefix * 10 + key - '0';
|
data->numprefix = data->numprefix * 10 + key - '0';
|
||||||
|
|
||||||
window_copy_redraw_lines(wp, screen_size_y(s) - 1, 1);
|
window_copy_redraw_lines(wp, screen_size_y(s) - 1, 1);
|
||||||
return 0;
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ARGSUSED */
|
/* ARGSUSED */
|
||||||
|
4
window.c
4
window.c
@ -112,7 +112,7 @@ winlink_find_by_window_id(struct winlinks *wwl, u_int id)
|
|||||||
if (wl->window->id == id)
|
if (wl->window->id == id)
|
||||||
return (wl);
|
return (wl);
|
||||||
}
|
}
|
||||||
return NULL;
|
return (NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -270,7 +270,7 @@ window_find_by_id(u_int id)
|
|||||||
if (w->id == id)
|
if (w->id == id)
|
||||||
return (w);
|
return (w);
|
||||||
}
|
}
|
||||||
return NULL;
|
return (NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct window *
|
struct window *
|
||||||
|
Loading…
Reference in New Issue
Block a user