mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
* view.c (display): Fix wrapping of tabs.
Reported by Arpad Biro <biro_arpad@yahoo.com>
This commit is contained in:
parent
894f2c3d40
commit
c46620d1c5
@ -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.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user