From 23cd4b9cb3e1acce561afa7b85cf95c55eed333e Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Thu, 7 Jan 2010 10:19:12 +0300 Subject: [PATCH] Ticket #1944: incorrect draw of wrapped lines. If viewer is in wrap mode, there is an expta empty line in wrapped line. This bug was introduced in 8c84095ae1afc1f60eb1cb73e318cf315ac77a9c commit. Signed-off-by: Andrew Borodin --- src/viewer/plain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viewer/plain.c b/src/viewer/plain.c index fc12f321a..6df36e6fd 100644 --- a/src/viewer/plain.c +++ b/src/viewer/plain.c @@ -16,6 +16,7 @@ 2009 Slava Zanko 2009 Andrew Borodin 2009 Ilia Maslakov + 2010 Andrew Borodin This file is part of the Midnight Commander. @@ -125,7 +126,6 @@ mcview_display_text (mcview_t * view) if (col >= width && view->text_wrap_mode) { col = 0; - row++; if (++row >= height) break; }