diff options
Diffstat (limited to 'src/input.c')
-rw-r--r-- | src/input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input.c b/src/input.c index 8abb308..c71d58c 100644 --- a/src/input.c +++ b/src/input.c @@ -442,10 +442,10 @@ update_input_window (rp_screen *s, rp_input_line *line) total_width = defaults.bar_x_padding * 2 + prompt_width + input_width + MAX_FONT_WIDTH (defaults.font); height = (FONT_HEIGHT (s) + defaults.bar_y_padding * 2); - if (RP_IS_UTF8_START (line->buffer[line->position])) + if (isu8start (line->buffer[line->position])) do char_len++; - while (RP_IS_UTF8_CONT (line->buffer[line->position + char_len])); + while (isu8cont (line->buffer[line->position + char_len])); else char_len = 1; |