summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2018-01-23 14:20:06 +0100
committerYorhel <git@yorhel.nl>2018-01-23 14:20:10 +0100
commit1165342dcf09e7a47f76cf3ad93270c4cbf06e2d (patch)
treec05562f0b90e6883b69e2e02660578bb40faa877
parent40b127591fe49bdb7dcf52e879a2cf1929af4a7c (diff)
Don't depend on current color when creating ncurses window
Fixes a minor glitch where A_REVERSE would be set on the information window if the last item in the dir is selected.
-rw-r--r--src/util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index 11be394..b85ac2b 100644
--- a/src/util.c
+++ b/src/util.c
@@ -162,6 +162,7 @@ int ncresize(int minrows, int mincols) {
void nccreate(int height, int width, const char *title) {
int i;
+ uic_set(UIC_DEFAULT);
subwinr = winrows/2-height/2;
subwinc = wincols/2-width/2;