X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=st.c;h=d9f0ba673b3015ad2b44cd7df917455b51cb5bd6;hb=80fe97f8a66d31945bdddbb9381b2cc54359f48e;hp=782d18e199cdb97022488887ed85d7b8d39b2996;hpb=f7b80caebe2b96ef65e301634d8dc4e02325e357;p=st.git diff --git a/st.c b/st.c index 782d18e..d9f0ba6 100644 --- a/st.c +++ b/st.c @@ -3852,7 +3852,8 @@ xdrawcursor(void) g.u = term.line[term.c.y][term.c.x].u; if (ena_sel && selected(term.c.x, term.c.y)) { drawcol = dc.col[defaultrcs]; - g.mode ^= ATTR_REVERSE; + g.fg = defaultfg; + g.bg = defaultrcs; } else { drawcol = dc.col[defaultcs]; } @@ -3863,6 +3864,8 @@ xdrawcursor(void) /* draw the new one */ if (xw.state & WIN_FOCUSED) { switch (xw.cursor) { + case 7: /* st extension: snowman */ + utf8decode("☃", &g.u, UTF_SIZ); case 0: /* Blinking Block */ case 1: /* Blinking Block (Default) */ case 2: /* Steady Block */