aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Rameau <quinq@fifth.space>2015-10-06 10:29:44 +0200
committerChristoph Lohmann <20h@r-36.net>2015-10-06 17:36:02 +0200
commit293f573efd8c1c9cddd319caa7564736aa60639a (patch)
tree312aebe57d1921643cff70ed8d5f6890baa1f988
parent2ea02c937e3a1810050a5fb9f51e7e522d23af3b (diff)
downloadst-patched-293f573efd8c1c9cddd319caa7564736aa60639a.tar.bz2
st-patched-293f573efd8c1c9cddd319caa7564736aa60639a.tar.xz
st-patched-293f573efd8c1c9cddd319caa7564736aa60639a.zip
Fix the cursor colors selection
Signed-off-by: Christoph Lohmann <20h@r-36.net>
-rw-r--r--st.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/st.c b/st.c
index e885a7d..01d4410 100644
--- a/st.c
+++ b/st.c
@@ -3865,13 +3865,12 @@ xdrawcursor(void)
3865 g.fg = defaultcs; 3865 g.fg = defaultcs;
3866 } 3866 }
3867 } else { 3867 } else {
3868 g.fg = defaultfg;
3869 if (ena_sel && selected(term.c.x, term.c.y)) { 3868 if (ena_sel && selected(term.c.x, term.c.y)) {
3870 g.bg = defaultcs;
3871 drawcol = dc.col[defaultrcs]; 3869 drawcol = dc.col[defaultrcs];
3870 g.fg = defaultfg;
3871 g.bg = defaultrcs;
3872 } else { 3872 } else {
3873 drawcol = dc.col[defaultcs]; 3873 drawcol = dc.col[defaultcs];
3874 g.bg = defaultrcs;
3875 } 3874 }
3876 } 3875 }
3877 3876