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.
(cherry picked from commit 7db2f8c629
)
This commit is contained in:
parent
3a87ec55fc
commit
f62eca8d92
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user