Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions urlview.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@
#define PAGELEN (LINES - 1 - OFFSET)
#define URLSIZE 128

#define CTRL(x) ((x)-'@')

enum
{
FULL = 1,
Expand Down Expand Up @@ -491,6 +493,7 @@ into a line of its own in your \n\
done = 1;
break;
case KEY_DOWN:
case CTRL('N'):
case 'j':
if (current < urlcount - 1)
{
Expand All @@ -517,6 +520,7 @@ into a line of its own in your \n\
}
break;
case KEY_UP:
case CTRL('P'):
case 'k':
if (current)
{
Expand All @@ -543,6 +547,7 @@ into a line of its own in your \n\
}
break;
case KEY_HOME:
case '<':
case '=':
if (top != 0)
{
Expand All @@ -554,6 +559,7 @@ into a line of its own in your \n\
current = 0;
break;
case KEY_END:
case '>':
case '*':
case 'G':
current = urlcount - 1;
Expand All @@ -566,6 +572,7 @@ into a line of its own in your \n\
redraw = MOTION;
break;
case KEY_NPAGE:
case CTRL('V'):
case '\006':
if (top + PAGELEN < urlcount)
{
Expand Down