From f62eca8d928383b5f94062df904f905426854d5a Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Mon, 27 Aug 2007 21:14:56 +0200 Subject: [PATCH] move-link-up-line and others: changed mode to NAVIGATE_CURSOR_ROUTING when there is no link. (cherry picked from commit 7db2f8c629ab4ab84016466813d38670bb4b3108) --- src/viewer/text/view.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/viewer/text/view.c b/src/viewer/text/view.c index 38196a27e..c3b7bb632 100644 --- a/src/viewer/text/view.c +++ b/src/viewer/text/view.c @@ -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;