mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 07:48:18 +00:00
ui: Blank the next cell for any multi-cell character
Followup for #5461
This commit is contained in:
@@ -397,13 +397,14 @@ static void send_output(uint8_t **ptr)
|
||||
size_t clen = (size_t)mb_ptr2len(p);
|
||||
UI_CALL(put, p, (size_t)clen);
|
||||
col++;
|
||||
if (utf_ambiguous_width(utf_ptr2char(p))) {
|
||||
pending_cursor_update = true;
|
||||
} else if (mb_ptr2cells(p) > 1) {
|
||||
if (mb_ptr2cells(p) > 1) {
|
||||
// double cell character, blank the next cell
|
||||
UI_CALL(put, NULL, 0);
|
||||
col++;
|
||||
}
|
||||
if (utf_ambiguous_width(utf_ptr2char(p))) {
|
||||
pending_cursor_update = true;
|
||||
}
|
||||
if (col >= width) {
|
||||
ui_linefeed();
|
||||
}
|
||||
|
Reference in New Issue
Block a user