ref: 5aacd6e0feec85706928cc622ded052e44edd0e2
parent: 5f283c1b58eed04c0223f2a12f593fb95d1f505d
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Fri May 29 11:00:10 EDT 2020
remove "entering" logic
--- a/zuke.c
+++ b/zuke.c
@@ -55,7 +55,6 @@
static Channel *ev;
static Mousectl *mctl;
static Keyboardctl *kctl;
-static int entering;
static int colwidth[3];
static int mincolwidth[3];
static int *shuffle;
@@ -128,9 +127,6 @@
int i, left, scrollcenter;
char tmp[32];
- if(entering)
- return;
-
lockdisplay(display);
if(full){
draw(screen, screen->r, colors[Dback].im, nil, ZP);
@@ -680,11 +676,8 @@
int inc, i, a;
inc = (d == '/' || d == 'n') ? 1 : -1;
- if(d == '/' || d == '?'){
- entering = 1;
+ if(d == '/' || d == '?')
sz = enter(inc > 0 ? "forward:" : "backward:", buf, sizeof(buf), mctl, kctl, nil);
- entering = 0;
- }
if(sz < 1)
return;