Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
Fix manpage typo
[st.git]
/
x.c
diff --git
a/x.c
b/x.c
index
6474a01
..
191e5dc
100644
(file)
--- a/
x.c
+++ b/
x.c
@@
-88,7
+88,6
@@
static void xclear(int, int, int, int);
static void xdrawcursor(void);
static int xgeommasktogravity(int);
static int xloadfont(Font *, FcPattern *);
static void xdrawcursor(void);
static int xgeommasktogravity(int);
static int xloadfont(Font *, FcPattern *);
-static void xsetsel(char *, Time);
static void xunloadfont(Font *);
static void expose(XEvent *);
static void xunloadfont(Font *);
static void expose(XEvent *);
@@
-1093,6
+1092,9
@@
xmakeglyphfontspecs(XftGlyphFontSpec *specs, const Glyph *glyphs, int len, int x
frc[frclen].font = XftFontOpenPattern(xw.dpy,
fontpattern);
frc[frclen].font = XftFontOpenPattern(xw.dpy,
fontpattern);
+ if (!frc[frclen].font)
+ die("XftFontOpenPattern failed seeking fallback font: %s\n",
+ strerror(errno));
frc[frclen].flags = frcflags;
frc[frclen].unicodep = rune;
frc[frclen].flags = frcflags;
frc[frclen].unicodep = rune;
@@
-1286,6
+1288,8
@@
xdrawcursor(void)
xdrawglyph(og, oldx, oldy);
g.u = term.line[term.c.y][term.c.x].u;
xdrawglyph(og, oldx, oldy);
g.u = term.line[term.c.y][term.c.x].u;
+ g.mode |= term.line[term.c.y][term.c.x].mode &
+ (ATTR_BOLD | ATTR_ITALIC | ATTR_UNDERLINE | ATTR_STRUCK);
/*
* Select the right color for the right mode.
/*
* Select the right color for the right mode.