Skip to content

Commit a474cb2

Browse files
committed
Fix non-Core Text renderer not working well with wide text
This was previously broken by macvim-dev#1287 as I did not update the new constants' values. Fix macvim-dev#1296
1 parent 951e80d commit a474cb2

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

src/MacVim/MMTextStorage.m

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,18 @@
4545
// TODO: What does DRAW_TRANSP flag do? If the background isn't drawn when
4646
// this flag is set, then sometimes the character after the cursor becomes
4747
// blank. Everything seems to work fine by just ignoring this flag.
48-
#define DRAW_TRANSP 0x01 /* draw with transparant bg */
49-
#define DRAW_BOLD 0x02 /* draw bold text */
50-
#define DRAW_UNDERL 0x04 /* draw underline text */
51-
#define DRAW_UNDERC 0x08 /* draw undercurl text */
52-
#define DRAW_ITALIC 0x10 /* draw italic text */
48+
#define DRAW_TRANSP 0x01 // draw with transparent bg
49+
#define DRAW_BOLD 0x02 // draw bold text
50+
#define DRAW_UNDERL 0x04 // draw underline text
51+
#define DRAW_UNDERC 0x08 // draw undercurl text
52+
#define DRAW_ITALIC 0x10 // draw italic text
5353
#define DRAW_CURSOR 0x20
54-
#define DRAW_WIDE 0x80 /* draw wide text */
54+
#define DRAW_STRIKE 0x40 // draw strikethrough text
55+
#define DRAW_UNDERDOUBLE 0x80 // draw double underline
56+
#define DRAW_UNDERDOTTED 0x100 // draw dotted underline
57+
#define DRAW_UNDERDASHED 0x200 // draw dashed underline
58+
#define DRAW_WIDE 0x1000 // (MacVim only) draw wide text
59+
#define DRAW_COMP 0x2000 // (MacVim only) drawing composing char
5560

5661

5762
static NSString *MMWideCharacterAttributeName = @"MMWideChar";

0 commit comments

Comments
 (0)