aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ui.c
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2016-09-26 22:16:17 -0400
committerGitHub <noreply@github.com>2016-09-26 22:16:17 -0400
commitf610b807b48dbaf96fe05459927a8c926b67f8bb (patch)
tree71429c5408ff4e26af9c66adf8cf8956622373cf /src/nvim/ui.c
parent68bcb32ec43e2fab30dc05439fc77cf28793922c (diff)
parent4ce24ff9da0f6551eeca2011dc9d05194bf02e12 (diff)
downloadrneovim-f610b807b48dbaf96fe05459927a8c926b67f8bb.tar.gz
rneovim-f610b807b48dbaf96fe05459927a8c926b67f8bb.tar.bz2
rneovim-f610b807b48dbaf96fe05459927a8c926b67f8bb.zip
Merge pull request #5372 from jamessan/vim-7.4.1604
vim-patch:7.4.1604,7.4.1620,7.4.1629,7.4.1630,7.4.1642,7.4.1697 Closes #5149
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r--src/nvim/ui.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c
index b8d44cbcf8..648d633e07 100644
--- a/src/nvim/ui.c
+++ b/src/nvim/ui.c
@@ -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++;