1
1

* view.c (move_backward2): Bugfix: Only move the view if the cursor would be out-of-view.

Этот коммит содержится в:
Roland Illig 2004-08-19 19:34:16 +00:00
родитель a540dee8b5
Коммит fb4fd57695

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

@ -1308,11 +1308,14 @@ move_backward2 (WView *view, offset_type current, int lines)
} else {
view->edit_cursor %= view->bytes_per_line;
}
if (current > view->edit_cursor) {
/* cursor is out-of-view -- adjust the view */
if (current >= lines * view->bytes_per_line) {
current -= lines * view->bytes_per_line;
} else {
current %= view->bytes_per_line;
}
}
return current;
} else {
if (current == view->first)