* 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.
Этот коммит содержится в:
родитель
1440266805
Коммит
1ee7a7c31f
@ -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 {
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user