From bfbee3c71e5100eb2158f236c45e7e7858ae57ba Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 20 Nov 2014 18:45:27 +0000 Subject: [PATCH] Fix info box placement when too wide --- src/ncurses.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ncurses.cc b/src/ncurses.cc index 45e032bf..fe2ba1b1 100644 --- a/src/ncurses.cc +++ b/src/ncurses.cc @@ -666,7 +666,7 @@ static CharCoord compute_pos(CharCoord anchor, CharCoord size, pos.line = max(0_line, anchor.line - size.line); } if (pos.column + size.column >= scrsize.column) - pos.column = max(0_char, anchor.column - size.column+1); + pos.column = max(0_char, scrsize.column - size.column); if (opt_window_to_avoid) {