need more coffee

This commit is contained in:
cinap_lenrek 2012-09-26 15:54:25 +02:00
parent aa3dd7fd8f
commit d3f93ee1f3
2 changed files with 2 additions and 6 deletions

View file

@ -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){

View file

@ -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){