pinosaur
/
st.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make clipboard patch obsolete
[st.git]
/
x.c
diff --git
a/x.c
b/x.c
index
743b084
..
ab9593e
100644
(file)
--- a/
x.c
+++ b/
x.c
@@
-507,6
+507,7
@@
xsetsel(char *str, Time t)
XSetSelectionOwner(xw.dpy, XA_PRIMARY, xw.win, t);
if (XGetSelectionOwner(xw.dpy, XA_PRIMARY) != xw.win)
selclear_(NULL);
XSetSelectionOwner(xw.dpy, XA_PRIMARY, xw.win, t);
if (XGetSelectionOwner(xw.dpy, XA_PRIMARY) != xw.win)
selclear_(NULL);
+ xclipcopy();
}
void
}
void
@@
-1285,6
+1286,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.