summary refs log tree commit diff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.c b/main.c
index 0c36a34..738a3e9 100644
--- a/main.c
+++ b/main.c
@@ -50,6 +50,12 @@ int cmd_do(char *cmd, struct nav_state *ns) {
 	case 'g':
 		if (nav_to(ns, cmd + 1)) perr("navigation failure");
 		break;
+	case 'p':
+		nav_prev(ns);
+		break;
+	case 'n':
+		nav_next(ns);
+		break;
 	default:
 		perr("?");
 		break;