mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Move jump commands to grid reader, make them UTF-8 aware, and tidy up,
from Anindya Mukherjee.
This commit is contained in:
12
status.c
12
status.c
@ -1319,12 +1319,14 @@ append_key:
|
||||
}
|
||||
|
||||
if (c->prompt_flags & PROMPT_SINGLE) {
|
||||
s = utf8_tocstr(c->prompt_buffer);
|
||||
if (strlen(s) != 1)
|
||||
if (utf8_strlen(c->prompt_buffer) != 1)
|
||||
status_prompt_clear(c);
|
||||
else if (c->prompt_inputcb(c, c->prompt_data, s, 1) == 0)
|
||||
status_prompt_clear(c);
|
||||
free(s);
|
||||
else {
|
||||
s = utf8_tocstr(c->prompt_buffer);
|
||||
if (c->prompt_inputcb(c, c->prompt_data, s, 1) == 0)
|
||||
status_prompt_clear(c);
|
||||
free(s);
|
||||
}
|
||||
}
|
||||
|
||||
changed:
|
||||
|
Reference in New Issue
Block a user