From c46620d1c5f6e66f23d85a2f01dcda036723ecfb Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Tue, 24 Sep 2002 04:20:16 +0000 Subject: [PATCH] * view.c (display): Fix wrapping of tabs. Reported by Arpad Biro --- src/ChangeLog | 5 +++++ src/view.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 52914d4bd..c5e8436d0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2002-09-24 Pavel Roskin + + * view.c (display): Fix wrapping of tabs. + Reported by Arpad Biro + 2002-09-23 Pavel Roskin * dlg.h: New message DLG_RESIZE. diff --git a/src/view.c b/src/view.c index 070ec9bc0..292bc22e5 100644 --- a/src/view.c +++ b/src/view.c @@ -969,7 +969,7 @@ display (WView * view) get_byte (view, from); for (; row < height && from < view->last_byte; from++) { c = get_byte (view, from); - if ((c == '\n') || (col == width && view->wrap_mode)) { + if ((c == '\n') || (col >= width && view->wrap_mode)) { col = frame_shift; row++; if (c == '\n' || row >= height)