* view.c (move_backward2): Bugfix: Only move the view if the cursor would be out-of-view.
Этот коммит содержится в:
родитель
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)
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user