samterm: fix esc, change ctrl+b behaviour to a more useful one (thanks cinap)
This commit is contained in:
parent
e993ea3e30
commit
704bd2b513
1 changed files with 6 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue