ref: dff4e39023c98cc9e4231dde1a0c858479d52866
parent: a494326a3f1a547c017f0746f616b790a28befce
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Apr 21 20:55:58 EDT 2020
samterm: don't scroll invisible (command) window (thanks umbraticus) with scroll-wheel scrolling, this case can happen with the command window: umbraticus → cinap: create fullscreen file buffer by right-clicking in cmd window
--- a/sys/src/cmd/samterm/scroll.c
+++ b/sys/src/cmd/samterm/scroll.c
@@ -111,6 +111,9 @@
int x, y, my, oy, h;
long p0;
+ if(l->visible==None)
+ return;
+
s = l->scroll;
x = s.min.x+FLSCROLLWID/2;
scr = scrpos(l->scroll, l->origin, l->origin+l->f.nchars, tot);
--
⑨