aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acme/exec.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2011-04-27 13:18:07 -0400
committerRuss Cox <rsc@swtch.com>2011-04-27 13:18:07 -0400
commitba31ab3044765270d40c9da934dfc11e5f8b63c5 (patch)
treeb9b8bb263f822e990b53eb97384ba338a0036a66 /src/cmd/acme/exec.c
parent42ef984cf2514fedc4f9e2efe2876aa95d2d8579 (diff)
downloadplan9port-ba31ab3044765270d40c9da934dfc11e5f8b63c5.tar.gz
plan9port-ba31ab3044765270d40c9da934dfc11e5f8b63c5.tar.bz2
plan9port-ba31ab3044765270d40c9da934dfc11e5f8b63c5.zip
9term, acme: autoscroll
Ignore scroll/noscroll window setting. Instead, scroll when the write begins in or immediately after the displayed window content. In the new scrolling discipline, executing "Noscroll" is replaced by typing Page Up or using the mouse to scroll higher in the buffer, and executing "Scroll" is replaced by typing End or using the mouse to scroll to the bottom of the buffer. R=r, r2 http://codereview.appspot.com/4433060
Diffstat (limited to 'src/cmd/acme/exec.c')
-rw-r--r--src/cmd/acme/exec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/acme/exec.c b/src/cmd/acme/exec.c
index a71b5b48..ad4da001 100644
--- a/src/cmd/acme/exec.c
+++ b/src/cmd/acme/exec.c
@@ -960,6 +960,7 @@ sendx(Text *et, Text *t, Text *_0, int _1, int _2, Rune *_3, int _4)
if(textreadc(t, t->file->b.nc-1) != '\n'){
textinsert(t, t->file->b.nc, Lnl, 1, TRUE);
textsetselect(t, t->file->b.nc, t->file->b.nc);
+ textshow(t, t->q1, t->q1, 1);
}
}