mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 14:58:18 +00:00
vim-patch:7.4.1697
Problem: Display problems when the 'ambiwidth' and 'emoji' options are not
set properly or the terminal doesn't behave as expected.
Solution: After drawing an ambiguous width character always position the
cursor.
cb0700844c
This commit is contained in:
@@ -397,7 +397,10 @@ static void send_output(uint8_t **ptr)
|
||||
size_t clen = (size_t)mb_ptr2len(p);
|
||||
UI_CALL(put, p, (size_t)clen);
|
||||
col++;
|
||||
if (mb_ptr2cells(p) > 1) {
|
||||
if (utf_ambiguous_width(*p)) {
|
||||
pending_cursor_update = true;
|
||||
flush_cursor_update();
|
||||
} else if (mb_ptr2cells(p) > 1) {
|
||||
// double cell character, blank the next cell
|
||||
UI_CALL(put, NULL, 0);
|
||||
col++;
|
||||
|
Reference in New Issue
Block a user