Use this patch:
diff --git a/src/document/renderer.c b/src/document/renderer.c
index 90fcc80..8b80d73 100644
--- a/src/document/renderer.c
+++ b/src/document/renderer.c
@@ -499,6 +499,7 @@ render_document_frames(struct session *ses, int no_cache)
}
}
+#if 0
static int
comp_links(struct link *l1, struct link *l2)
{
@@ -506,6 +507,20 @@ comp_links(struct link *l1, struct link *l2)
if_assert_failed return 0;
return (l1->number - l2->number);
}
+#endif
+
+static int
+comp_links(struct link *l1, struct link *l2)
+{
+ int res;
+
+ assert(l1 && l2 && l1->points && l2->points);
+ if_assert_failed return 0;
+ res = l1->points[0].y - l2->points[0].y;
+ if (res)
+ return res;
+ return l1->points[0].x - l2->points[0].x;
+}
void
sort_links(struct document *document)
and these keybindings:
bind "main" "up" = "move-link-up"
bind "main" "down" = "move-link-down"
bind "main" "left" = "move-link-prev"
bind "main" "right" = "move-link-next"
You pay 5$ :)
_______________________________________________
elinks-dev mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-dev