st

Mahdi's build of st
git clone git://mahdi.pw/st.git
Log | Files | Refs | README | LICENSE

commit ddbb81f8cde84e4876e762eac3d035af5863a806
parent afbf219b94274184eec6a4d7abf2db61ba823a44
Author: Mahdi Mirzade <me@mahdi.pw>
Date:   Mon, 24 Oct 2022 19:35:12 +0330

x.c: Fix indentation, cursorfg -> cursorColor, call xloadsparefonts() in
reload() function.

Diffstat:
Mx.c | 15++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/x.c b/x.c @@ -2273,17 +2273,17 @@ xrdb_load(void) XRESOURCE_LOAD_STRING("foreground", colorname[defaultfg]); XRESOURCE_LOAD_STRING("background", colorname[defaultbg]); - XRESOURCE_LOAD_STRING("cursorfg", colorname[defaultcs]) + XRESOURCE_LOAD_STRING("cursorColor", colorname[defaultcs]) else { - // this looks confusing because we are chaining off of the if - // in the macro. probably we should be wrapping everything blocks - // so this isn't possible... - defaultcs = defaultfg; + // this looks confusing because we are chaining off of the if + // in the macro. probably we should be wrapping everything blocks + // so this isn't possible... + defaultcs = defaultfg; } XRESOURCE_LOAD_STRING("reverse-cursor", colorname[defaultrcs]) else { - // see above. - defaultrcs = defaultbg; + // see above. + defaultrcs = defaultbg; } XRESOURCE_LOAD_STRING("font", font); @@ -2323,6 +2323,7 @@ reload(int sig) xloadcols(); xunloadfonts(); xloadfonts(font, 0); + xloadsparefonts(); /* pretend the window just got resized */ cresize(win.w, win.h);