home · contact · privacy
Removed superfluous loop.
authorChristian Heller <c.heller@plomlompom.de>
Sat, 15 Jun 2013 01:05:41 +0000 (03:05 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Sat, 15 Jun 2013 01:05:41 +0000 (03:05 +0200)
windows.c

index 7ef048a9c0d1cdcd7d3cf853d4a7a63a21e8ddc6..f2315d92c2a662dcbff0e1ee0acfd668208ed8a7 100644 (file)
--- a/windows.c
+++ b/windows.c
@@ -232,9 +232,8 @@ extern void draw_all_windows (struct WinMeta * wmeta) {
     if (wmeta->pad_offset > 0)
       draw_scroll_hint(&wmeta->pad, wmeta->pad_offset, wmeta->pad_offset + 1, '<');
     if (wmeta->pad_offset + wmeta->pad.size.x < getmaxx(wmeta->pad.curses_win) - 1)
-      for (y = 0; y < wmeta->pad.size.y; y++)
-        draw_scroll_hint(&wmeta->pad, wmeta->pad_offset + wmeta->pad.size.x - 1,
-                         getmaxx(wmeta->pad.curses_win) - (wmeta->pad_offset + wmeta->pad.size.x), '>');
+      draw_scroll_hint(&wmeta->pad, wmeta->pad_offset + wmeta->pad.size.x - 1,
+                       getmaxx(wmeta->pad.curses_win) - (wmeta->pad_offset + wmeta->pad.size.x), '>');
     pnoutrefresh(wmeta->pad.curses_win, 0, wmeta->pad_offset, 0, 0, wmeta->pad.size.y, wmeta->pad.size.x-1); }
   doupdate(); }