need more coffee
This commit is contained in:
parent
aa3dd7fd8f
commit
d3f93ee1f3
|
@ -156,9 +156,7 @@ eenter(char *ask, char *buf, int len, Mouse *m)
|
||||||
if(tick == 0 || strchr("\t ", buf[tick-1]))
|
if(tick == 0 || strchr("\t ", buf[tick-1]))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(n > tick)
|
buf[n = tick] = 0;
|
||||||
memset(buf+tick, 0, n-tick);
|
|
||||||
n = tick;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(k == Kbs){
|
if(k == Kbs){
|
||||||
|
|
|
@ -164,9 +164,7 @@ enter(char *ask, char *buf, int len, Mousectl *mc, Keyboardctl *kc, Screen *scr)
|
||||||
if(tick == 0 || strchr("\t ", buf[tick-1]))
|
if(tick == 0 || strchr("\t ", buf[tick-1]))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(n > tick)
|
buf[n = tick] = 0;
|
||||||
memset(buf+tick, 0, n-tick);
|
|
||||||
n = tick;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(k == Kbs){
|
if(k == Kbs){
|
||||||
|
|
Loading…
Reference in a new issue