Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
st.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9573f5c
)
cursor swaps fg and bg colors
author
Jason Woofenden
<jason@jasonwoof.com>
Wed, 10 Dec 2014 18:47:19 +0000
(13:47 -0500)
committer
Jason Woofenden
<jason@jasonwoof.com>
Wed, 10 Dec 2014 18:47:19 +0000
(13:47 -0500)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
068fbb3
..
6f38311
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-3506,9
+3506,9
@@
xdrawcursor(void) {
if(xw.state & WIN_FOCUSED) {
if(IS_SET(MODE_REVERSE)) {
g.mode |= ATTR_REVERSE;
- g.fg = defaultcs;
- g.bg = defaultfg;
}
+ g.fg = term.line[term.c.y][curx].bg;
+ g.bg = term.line[term.c.y][curx].fg;
sl = utf8len(g.c);
width = (term.line[term.c.y][curx].mode & ATTR_WIDE)\