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
8c84095ae1 commit.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2010-01-07 10:19:12 +03:00
parent 49c86446ac
commit 23cd4b9cb3

View File

@ -16,6 +16,7 @@
2009 Slava Zanko <slavazanko@google.com>
2009 Andrew Borodin <aborodin@vmail.ru>
2009 Ilia Maslakov <il.smind@gmail.com>
2010 Andrew Borodin <aborodin@vmail.ru>
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;
}