version 1.86, 2015/09/02 17:52:57 |
version 1.87, 2015/10/27 15:58:42 |
|
|
{ |
{ |
if (ictx->flags & INPUT_DISCARD) |
if (ictx->flags & INPUT_DISCARD) |
return; |
return; |
if (!options_get_number(&ictx->wp->window->options, "allow-rename")) |
if (!options_get_number(ictx->wp->window->options, "allow-rename")) |
return; |
return; |
log_debug("%s: \"%s\"", __func__, ictx->input_buf); |
log_debug("%s: \"%s\"", __func__, ictx->input_buf); |
|
|
window_set_name(ictx->wp->window, 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); |
server_status_window(ictx->wp->window); |
} |
} |
|
|
int |
int |
input_utf8_open(struct input_ctx *ictx) |
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. */ |
/* Print, and do not switch state. */ |
input_print(ictx); |
input_print(ictx); |
return (-1); |
return (-1); |