summaryrefslogtreecommitdiff
blob: 553f3c0fe18f18c2d6f0b5c51d1666b60ecb51c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- OutputWindow.cc
+++ OutputWindow.cc
@@ -229,8 +229,8 @@
         highlight.len = strlen(s);
         
         // Show on the second line rather than under status bar
-        viewpoint = scrollback >? p-width;
-        viewpoint = viewpoint <? canvas;
+        viewpoint = scrollback > p-width ? scrollback : p-width;
+        viewpoint = viewpoint < canvas ? viewpoint : canvas;
         status->setf("Found string '%s'", s);
     }
 }