commit b8950a5756e3d1fe0b0791e83d9971fcc5aa85c3
parent 8ad8815654b9fcac4caee27f11b3af6ce336a5ac
Author: Claudio Alessi <smoppy@gmail.com>
Date: Thu, 3 Mar 2016 20:19:36 +0100
Fix cursor disabling.
Additionally, all STFL bindings has been disabled.
Diffstat:
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/core.c b/core.c
@@ -419,11 +419,7 @@ 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))
@@ -457,6 +453,9 @@ setmode(const Arg *arg) {
v->choice = cloneitem(getitem());
selview = v;
selview->mode->func();
+
+ stfl_run(selview->form, -1);
+ curs_set(0);
}
void
diff --git a/items.stfl b/items.stfl
@@ -1,6 +1,10 @@
* See LICENSE file for copyright and license details.
vbox[main]
+ @bind_up: @bind_down: @bind_left: @bind_right:
+ @bind_page_up: @bind_page_down: @bind_home: @bind_end:
+ @bind_delete: @bind_backspace: @bind_enter:
+
label
@style_normal:fg=black,bg=white
text[title]:"The mutt of MySQL - Work in progress..."