mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Move struct options into options.c.
This commit is contained in:
6
input.c
6
input.c
@ -1907,12 +1907,12 @@ input_exit_rename(struct input_ctx *ictx)
|
||||
{
|
||||
if (ictx->flags & INPUT_DISCARD)
|
||||
return;
|
||||
if (!options_get_number(&ictx->wp->window->options, "allow-rename"))
|
||||
if (!options_get_number(ictx->wp->window->options, "allow-rename"))
|
||||
return;
|
||||
log_debug("%s: \"%s\"", __func__, ictx->input_buf);
|
||||
|
||||
window_set_name(ictx->wp->window, ictx->input_buf);
|
||||
options_set_number(&ictx->wp->window->options, "automatic-rename", 0);
|
||||
options_set_number(ictx->wp->window->options, "automatic-rename", 0);
|
||||
|
||||
server_status_window(ictx->wp->window);
|
||||
}
|
||||
@ -1921,7 +1921,7 @@ input_exit_rename(struct input_ctx *ictx)
|
||||
int
|
||||
input_utf8_open(struct input_ctx *ictx)
|
||||
{
|
||||
if (!options_get_number(&ictx->wp->window->options, "utf8")) {
|
||||
if (!options_get_number(ictx->wp->window->options, "utf8")) {
|
||||
/* Print, and do not switch state. */
|
||||
input_print(ictx);
|
||||
return (-1);
|
||||
|
Reference in New Issue
Block a user