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]))
|
||||
break;
|
||||
}
|
||||
if(n > tick)
|
||||
memset(buf+tick, 0, n-tick);
|
||||
n = tick;
|
||||
buf[n = tick] = 0;
|
||||
break;
|
||||
}
|
||||
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]))
|
||||
break;
|
||||
}
|
||||
if(n > tick)
|
||||
memset(buf+tick, 0, n-tick);
|
||||
n = tick;
|
||||
buf[n = tick] = 0;
|
||||
break;
|
||||
}
|
||||
if(k == Kbs){
|
||||
|
|
Loading…
Reference in a new issue