1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-28 03:06:20 -04:00

move-link-up-line and others: changed mode to NAVIGATE_CURSOR_ROUTING when

there is no link.
(cherry picked from commit 7db2f8c629)
(cherry picked from commit f62eca8d92)
This commit is contained in:
Witold Filipczyk 2007-08-27 21:14:56 +02:00 committed by Kalle Olavi Niemitalo
parent 61eb46e94d
commit 617e33187d

View File

@ -640,6 +640,7 @@ move_link_up_line(struct session *ses, struct document_view *doc_view)
if (vs->y) {
vs->y -= box->height;
int_lower_bound(&vs->y, 0);
ses->navigate_mode = NAVIGATE_CURSOR_ROUTING;
return FRAME_EVENT_REFRESH;
}
return FRAME_EVENT_OK;
@ -690,6 +691,7 @@ move_link_down_line(struct session *ses, struct document_view *doc_view)
}
if (vs->y + box->height < document->height) {
vs->y += box->height;
ses->navigate_mode = NAVIGATE_CURSOR_ROUTING;
return FRAME_EVENT_REFRESH;
}
return FRAME_EVENT_OK;
@ -758,6 +760,7 @@ move_link_prev_line(struct session *ses, struct document_view *doc_view)
if (vs->y) {
vs->y -= box->height;
int_lower_bound(&vs->y, 0);
ses->navigate_mode = NAVIGATE_CURSOR_ROUTING;
return FRAME_EVENT_REFRESH;
}
return FRAME_EVENT_OK;
@ -824,6 +827,7 @@ move_link_next_line(struct session *ses, struct document_view *doc_view)
}
if (vs->y + box->height < document->height) {
vs->y += box->height;
ses->navigate_mode = NAVIGATE_CURSOR_ROUTING;
return FRAME_EVENT_REFRESH;
}
return FRAME_EVENT_OK;