aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cmd/samterm/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/samterm/main.c b/src/cmd/samterm/main.c
index adeffeed..c37fa08b 100644
--- a/src/cmd/samterm/main.c
+++ b/src/cmd/samterm/main.c
@@ -108,6 +108,8 @@ threadmain(int argc, char *argv[])
continue;
}
nwhich = flwhich(mousep->xy);
+ if(nwhich && nwhich!=which)
+ current(nwhich);
scr = which && ptinrect(mousep->xy, which->scroll);
if(mousep->buttons)
flushtyping(1);