samterm: fix esc, change ctrl+b behaviour to a more useful one (thanks cinap)

This commit is contained in:
ftrvxmtrx 2014-05-12 14:19:22 +02:00
parent e993ea3e30
commit 704bd2b513

View file

@ -484,7 +484,6 @@ nontypingkey(int c)
case Kpgup:
case Kleft:
case Kright:
case Kesc:
case Ksoh:
case Kenq:
case Kstx:
@ -653,10 +652,13 @@ type(Flayer *l, int res) /* what a bloody mess this is */
}
}
}else if(c == Kstx){
t = &cmd;
l = &t->l[0];
current(l);
flushtyping(0);
a0 = t->rasp.nrunes;
flsetselect(l, a0, a0);
center(l, a0);
a = t->rasp.nrunes;
flsetselect(l, a, a);
center(l, a);
}else{
if(c==Kesc && typeesc>=0){
l->p0 = typeesc;