* Emanuele Rocca <[EMAIL PROTECTED]> [2005-05-19 21:24]:
> > cursor, i.e. pressing "up" on the first line should go to the last
> > line. I frequently have to open the last URL in a list and this
> > feature would be very helpful.
>
> Do you still find this wishlist useful?
Yes, I do. Here's a patch.
> Now that #307577 is fixed it is possible to use page up and page
> down to go through the list also with only a few urls.
That's nice, but I think also adding my patch would make it even
better.
diff -urN urlview-0.9.orig~/urlview.c urlview-0.9.orig/urlview.c
--- urlview-0.9.orig~/urlview.c 2005-05-20 17:25:53.718507240 +0100
+++ urlview-0.9.orig/urlview.c 2005-05-20 17:57:50.546105152 +0100
@@ -427,7 +427,16 @@
redraw = MOTION;
}
else
- beep ();
+ {
+ current = 0;
+ if (current < top)
+ {
+ top = current - current % PAGELEN;
+ redraw = INDEX;
+ }
+ else
+ redraw = MOTION;
+ }
break;
case KEY_UP:
case 'k':
@@ -443,7 +452,16 @@
redraw = MOTION;
}
else
- beep ();
+ {
+ current = urlcount - 1;
+ if (current > top + PAGELEN - 1)
+ {
+ top = current - current % PAGELEN;
+ redraw = INDEX;
+ }
+ else
+ redraw = MOTION;
+ }
break;
case KEY_HOME:
case '=':
--
Martin Michlmayr
http://www.cyrius.com/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]