1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

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

there is no link.
This commit is contained in:
Witold Filipczyk 2007-08-27 21:14:56 +02:00 committed by Witold Filipczyk
parent 12cb69d617
commit 7db2f8c629

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;