Re: Sponsor development of the key motion.

Witold Filipczyk <[email protected]>
Newsgroups gmane.comp.web.links
Message-ID <20070810175341.GA17668@pldmachine>
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$ :)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.