aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acme/text.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-05-14 15:14:21 +0000
committerrsc <devnull@localhost>2004-05-14 15:14:21 +0000
commit1a8f27c35024af7b4ed857a388d20f0a4a560db0 (patch)
treeb70f33150772d665fd2c254655b2782289b0c9da /src/cmd/acme/text.c
parenta796abef1632f379ced703b1b2e691d8f63436e2 (diff)
downloadplan9port-1a8f27c35024af7b4ed857a388d20f0a4a560db0.tar.gz
plan9port-1a8f27c35024af7b4ed857a388d20f0a4a560db0.tar.bz2
plan9port-1a8f27c35024af7b4ed857a388d20f0a4a560db0.zip
various bug fixes
Diffstat (limited to 'src/cmd/acme/text.c')
-rw-r--r--src/cmd/acme/text.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cmd/acme/text.c b/src/cmd/acme/text.c
index aa58be1a..37613d80 100644
--- a/src/cmd/acme/text.c
+++ b/src/cmd/acme/text.c
@@ -963,8 +963,11 @@ textshow(Text *t, uint q0, uint q1, int doselect)
int nl;
uint q;
- if(t->what != Body)
+ if(t->what != Body){
+ if(doselect)
+ textsetselect(t, q0, q1);
return;
+ }
if(t->w!=nil && t->fr.maxlines==0)
colgrow(t->col, t->w, 1);
if(doselect)