aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-03-18 19:33:50 +0000
committerrsc <devnull@localhost>2005-03-18 19:33:50 +0000
commit5544aaf99bc30369997764624b38be4be0d4b138 (patch)
treee1117b881bbf62a6e13d414d4292e5c5bf612aa8 /src
parent3b33df997f7f6a7ed9ffe39908ded3861b1dc0d4 (diff)
downloadplan9port-5544aaf99bc30369997764624b38be4be0d4b138.tar.gz
plan9port-5544aaf99bc30369997764624b38be4be0d4b138.tar.bz2
plan9port-5544aaf99bc30369997764624b38be4be0d4b138.zip
use typecommit; use nil in place of 0 again
Diffstat (limited to 'src')
-rw-r--r--src/cmd/acme/text.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/cmd/acme/text.c b/src/cmd/acme/text.c
index 20d00cb9..ea4d3b6d 100644
--- a/src/cmd/acme/text.c
+++ b/src/cmd/acme/text.c
@@ -735,12 +735,8 @@ texttype(Text *t, Rune r)
case 0x1B:
if(t->eq0 != ~0)
textsetselect(t, t->eq0, t->q0);
- if(t->ncache > 0){
- if(t->w != nil)
- wincommit(t->w, t);
- else
- textcommit(t, TRUE);
- }
+ if(t->ncache > 0)
+ typecommit(t);
return;
case 0x08: /* ^H: erase character */
case 0x15: /* ^U: erase line */
@@ -923,7 +919,7 @@ textselect(Text *t)
/* horrible botch: while asleep, may have lost selection altogether */
if(selectq > t->file->b.nc)
selectq = t->org + t->fr.p0;
- t->fr.scroll = 0;
+ t->fr.scroll = nil;
if(selectq < t->org)
q0 = selectq;
else