Fix Double Wide Glyph Rendering (#664)

* Fix Double Wide Glyph Rendering

Applying the suggestions mentioned in this diff and tested locally.

https://github.com/macvim-dev/macvim/pull/648

* Fix style suggestion

* fixup another suggestion
This commit is contained in:
Jordan W
2018-04-25 09:53:09 -07:00
committed by Kazuki Sakamoto
parent 1b4f57d1dd
commit f53f99012c
+4 -1
View File
@@ -8391,7 +8391,10 @@ screen_char(unsigned off, int row, int col)
}
/* not sure where the cursor is after drawing the ambiguous width
* character */
screen_cur_col = 9999;
# ifdef FEAT_GUI_MACVIM
if (*p_ambw == 'd' || !gui.in_use)
# endif
screen_cur_col = 9999;
}
else if (utf_char2cells(ScreenLinesUC[off]) > 1)
++screen_cur_col;