home · contact · privacy
Corrected off-by-one error in windows.c:refit_pad() that lead to failure of subpad...
authorChristian Heller <c.heller@plomlompom.de>
Tue, 3 Sep 2013 14:29:19 +0000 (16:29 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 3 Sep 2013 14:29:19 +0000 (16:29 +0200)
src/windows.c

index bd3ec4134f00b21d10e79ccd232ec7818036a21d..080880c8fff35f766ae791b5ede7152753a93604 100644 (file)
@@ -79,7 +79,7 @@ static uint8_t refit_pad(struct WinMeta * wmeta)
     }
 
     /* Only resize the pad if the rightmost window column has changed. */
-    if (getmaxx(wmeta->padframe.curses_win) != lastwincol)
+    if (getmaxx(wmeta->padframe.curses_win) + 1 != lastwincol)
     {
         if (lastwincol + 2 > UINT16_MAX)
         {