From 3f930ed73e1f6f3fb3b01f775b15a90d10fa69f2 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 2 Dec 2021 01:49:57 -0800 Subject: fix a slight portability issue, maybe When installing using NixOS[1], the screen looks wrong. It looks like attrset(A_NORMAL) does not undo color changes with some versions of dependencies. [1] https://github.com/marianoguerra/marianoguerra.github.io/blob/master/advent-of-future-of-code/days/day-02.md --- src/lua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lua.c b/src/lua.c index 04487f1..146c98c 100644 --- a/src/lua.c +++ b/src/lua.c @@ -774,7 +774,7 @@ static int is_current_definition(lua_State *L, const char *definition_name, int void draw_definition_name (const char *definition_name) { attron(BG(7)); addstr(definition_name); - attrset(A_NORMAL); + attroff(BG(7)); addstr(" "); } -- cgit 1.4.1-2-gfad0