diff options
Diffstat (limited to 'src/vterm/vterm_internal.h')
-rw-r--r-- | src/vterm/vterm_internal.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/vterm/vterm_internal.h b/src/vterm/vterm_internal.h index 53f9b5e100..8f1722dd93 100644 --- a/src/vterm/vterm_internal.h +++ b/src/vterm/vterm_internal.h @@ -4,6 +4,7 @@ #include "vterm.h" #include <stdarg.h> +#include "nvim/mbyte.h" #if defined(__GNUC__) # define INTERNAL __attribute__((visibility("internal"))) @@ -101,8 +102,10 @@ struct VTermState enum { MOUSE_X10, MOUSE_UTF8, MOUSE_SGR, MOUSE_RXVT } mouse_protocol; /* Last glyph output, for Unicode recombining purposes */ - uint32_t *combine_chars; - size_t combine_chars_size; // Number of ELEMENTS in the above + char grapheme_buf[MAX_SCHAR_SIZE]; + size_t grapheme_len; + uint32_t grapheme_last; // last added UTF-32 char + GraphemeState grapheme_state; int combine_width; // The width of the glyph above VTermPos combine_pos; // Position before movement @@ -292,7 +295,4 @@ void vterm_screen_free(VTermScreen *screen); VTermEncoding *vterm_lookup_encoding(VTermEncodingType type, char designation); -int vterm_unicode_width(uint32_t codepoint); -int vterm_unicode_is_combining(uint32_t codepoint); - #endif |