From f7bbd09c07a206740571d945f2275f60166252d9 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Fri, 23 Jun 2023 10:45:41 +0200 Subject: [PATCH] [view] Commented code which caused segfault When document had no links, "move down" caused segfault. Bad code was introduced with iframe code. iframes are not ready yet. --- src/viewer/text/view.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/viewer/text/view.cpp b/src/viewer/text/view.cpp index efc6567c..4a4d0eb9 100644 --- a/src/viewer/text/view.cpp +++ b/src/viewer/text/view.cpp @@ -260,12 +260,15 @@ move_link(struct session *ses, struct document_view *doc_view, int direction, * page_down() and set_textarea() under some conditions * as well. --pasky */ continue; - } else { + } +#if 0 + else { if (next_link_in_view_y(doc_view, current_link + direction, direction)) { continue; } } +#endif } else { if (next_link_in_view_y(doc_view, current_link + direction, direction)) {