use typecommit; use nil in place of 0 again
This commit is contained in:
parent
3b33df997f
commit
5544aaf99b
1 changed files with 3 additions and 7 deletions
|
|
@ -735,12 +735,8 @@ texttype(Text *t, Rune r)
|
||||||
case 0x1B:
|
case 0x1B:
|
||||||
if(t->eq0 != ~0)
|
if(t->eq0 != ~0)
|
||||||
textsetselect(t, t->eq0, t->q0);
|
textsetselect(t, t->eq0, t->q0);
|
||||||
if(t->ncache > 0){
|
if(t->ncache > 0)
|
||||||
if(t->w != nil)
|
typecommit(t);
|
||||||
wincommit(t->w, t);
|
|
||||||
else
|
|
||||||
textcommit(t, TRUE);
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
case 0x08: /* ^H: erase character */
|
case 0x08: /* ^H: erase character */
|
||||||
case 0x15: /* ^U: erase line */
|
case 0x15: /* ^U: erase line */
|
||||||
|
|
@ -923,7 +919,7 @@ textselect(Text *t)
|
||||||
/* horrible botch: while asleep, may have lost selection altogether */
|
/* horrible botch: while asleep, may have lost selection altogether */
|
||||||
if(selectq > t->file->b.nc)
|
if(selectq > t->file->b.nc)
|
||||||
selectq = t->org + t->fr.p0;
|
selectq = t->org + t->fr.p0;
|
||||||
t->fr.scroll = 0;
|
t->fr.scroll = nil;
|
||||||
if(selectq < t->org)
|
if(selectq < t->org)
|
||||||
q0 = selectq;
|
q0 = selectq;
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue