* view.c (display): Fix wrapping of tabs.
Reported by Arpad Biro <biro_arpad@yahoo.com>
Этот коммит содержится в:
родитель
894f2c3d40
Коммит
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>
|
2002-09-23 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* dlg.h: New message DLG_RESIZE.
|
* dlg.h: New message DLG_RESIZE.
|
||||||
|
@ -969,7 +969,7 @@ display (WView * view)
|
|||||||
get_byte (view, from);
|
get_byte (view, from);
|
||||||
for (; row < height && from < view->last_byte; from++) {
|
for (; row < height && from < view->last_byte; from++) {
|
||||||
c = get_byte (view, 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;
|
col = frame_shift;
|
||||||
row++;
|
row++;
|
||||||
if (c == '\n' || row >= height)
|
if (c == '\n' || row >= height)
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user