commit 29407cbef691f1aae02fcf1a86a7a60d3cbaa409
parent e60520f47ef63269a3bdebf4d5d6816d705c8f44
Author: Claudio Alessi <smoppy@gmail.com>
Date: Thu, 3 Mar 2016 19:33:59 +0100
Add a missing header.
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/core.c b/core.c
@@ -12,6 +12,7 @@
#include <string.h>
#include <stdlib.h>
#include <signal.h>
+#include <curses.h> /* For curs_set() */
#include <mysql.h>
#include <stfl.h>
@@ -415,8 +416,11 @@ run(void) {
while(running) {
if(!(ev = stfl_run(selview->form, 0)))
continue;
+
+ /* XXX this shouldn't be called at any cycle */
curs_set(0);
stfl_setf("status", "");
+
k = NULL;
for(i = 0; i < LENGTH(keys); ++i)
if(!((keys[i].mode && strcmp(selview->mode->name, keys[i].mode))