1
1

* view.c (view_fix_cursor_position): Fixed a division-by-zero

bug, which had been reported by Dirk Jagdmann and Pavel Tsekov.
	Pavel also tracked down the bug.
Этот коммит содержится в:
Roland Illig 2005-07-01 20:48:29 +00:00
родитель 1440266805
Коммит 1ee7a7c31f
2 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,9 @@
2005-07-01 Roland Illig <roland.illig@gmx.de>
* view.c (view_fix_cursor_position): Fixed a division-by-zero
bug, which had been reported by Dirk Jagdmann and Pavel Tsekov.
Pavel also tracked down the bug.
2005-06-30 Roland Illig <roland.illig@gmx.de>
* view.c (view_growbuf_load_until): Check the datasource in the

Просмотреть файл

@ -969,7 +969,8 @@ view_fix_cursor_position (WView *view)
columns = view_get_datacolumns (view);
view_offset_to_coord (view, &line, &col, view->dpy_topleft + view->dpy_text_column);
col = offset_rounddown (col, columns);
if (columns != 0)
col = offset_rounddown (col, columns);
view_coord_to_offset (view, &(view->dpy_topleft), line, col);
view->dpy_text_column = 0;
} else {