diff options
author | Ori Bernstein <ori@eigenstate.org> | 2020-09-22 11:42:15 -0700 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2020-09-22 11:42:15 -0700 |
commit | 313aebb96478c37be8f39754875c02dcb3f896cc (patch) | |
tree | 880c9ba449631562b136135e3e9a7e6169d178f6 /sys/src/cmd/acme/scrl.c | |
parent | c1c904776c1536e854c5c1717a104353f885c3cd (diff) |
acme: import changes from plan9port (thanks jxy)
Import the following improvements and bugfixes from plan9port:
4650064a acme: scale window bodies on resize, not including tag space
d28913a9 acme: save/restore multiline tags in Dump/Load
d2df5d6c acme: fix crash in X |cat with multiple windows
3d6e5cb5 acme: preserve window position and selection during Get
Diffstat (limited to 'sys/src/cmd/acme/scrl.c')
-rw-r--r-- | sys/src/cmd/acme/scrl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/acme/scrl.c b/sys/src/cmd/acme/scrl.c index 1310bc763..0d4173968 100644 --- a/sys/src/cmd/acme/scrl.c +++ b/sys/src/cmd/acme/scrl.c @@ -132,7 +132,7 @@ textscroll(Text *t, int but) readmouse(mousectl); continue; } - if(but == 1) + if(but == 1 || but == 4) p0 = textbacknl(t, t->org, (my-s.min.y)/t->font->height); else p0 = t->org+frcharofpt(t, Pt(s.max.x, my)); @@ -140,7 +140,7 @@ textscroll(Text *t, int but) textsetorigin(t, p0, TRUE); oldp0 = p0; /* debounce */ - if(first){ + if(first && but < 4){ flushimage(display, 1); sleep(200); nbrecv(mousectl->c, &mousectl->Mouse); |