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
This commit is contained in:
parent
2c317dccea
commit
81c9ede53f
1 changed files with 3 additions and 0 deletions
|
@ -111,6 +111,9 @@ scroll(Flayer *l, int but)
|
||||||
int x, y, my, oy, h;
|
int x, y, my, oy, h;
|
||||||
long p0;
|
long p0;
|
||||||
|
|
||||||
|
if(l->visible==None)
|
||||||
|
return;
|
||||||
|
|
||||||
s = l->scroll;
|
s = l->scroll;
|
||||||
x = s.min.x+FLSCROLLWID/2;
|
x = s.min.x+FLSCROLLWID/2;
|
||||||
scr = scrpos(l->scroll, l->origin, l->origin+l->f.nchars, tot);
|
scr = scrpos(l->scroll, l->origin, l->origin+l->f.nchars, tot);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue