diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-12-02 01:49:57 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-12-02 01:49:57 -0800 |
commit | 3f930ed73e1f6f3fb3b01f775b15a90d10fa69f2 (patch) | |
tree | 7b5de04b6767b22405cb2b45b8bd56853abaa56b /src | |
parent | e001212e995bf9c9d9495d06e9c0a69b374d32e2 (diff) | |
download | teliva-3f930ed73e1f6f3fb3b01f775b15a90d10fa69f2.tar.gz |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/lua.c | 2 |
1 files changed, 1 insertions, 1 deletions
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(" "); } |