* view.c (display): Fix wrapping of tabs.

Reported by Arpad Biro <biro_arpad@yahoo.com>
This commit is contained in:
Pavel Roskin 2002-09-24 04:20:16 +00:00
parent 894f2c3d40
commit c46620d1c5
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-09-24 Pavel Roskin <proski@gnu.org>
* view.c (display): Fix wrapping of tabs.
Reported by Arpad Biro <biro_arpad@yahoo.com>
2002-09-23 Pavel Roskin <proski@gnu.org>
* dlg.h: New message DLG_RESIZE.

View File

@ -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)