From 3171ab0c528b6e5a141d8ae853093d8c8703a0bd Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 29 Jan 2013 14:24:42 +0100 Subject: [PATCH] NCurses: fix multiline info --- src/ncurses.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ncurses.cc b/src/ncurses.cc index c5207cef..44c7fe0f 100644 --- a/src/ncurses.cc +++ b/src/ncurses.cc @@ -398,6 +398,7 @@ static DisplayCoord compute_needed_size(const String& str) { if (*begin == '\n') { + res.column = std::max(res.column, line_len+1); line_len = 0; ++res.line; }