jcs
/subtext
/amendments
/514
board: Hook up 'l' in post view to list posts
jcs made amendment 514 about 1 year ago
--- board.c Mon May 1 07:30:29 2023
+++ board.c Thu Jun 15 10:36:35 2023
@@ -881,6 +881,7 @@ board_post_read(struct session *s, struct board *board
{ '>', ">Pp", "Read older post" },
{ 'r', "Rr", "Reply to this post" },
{ 'd', "Dd", "Delete this post" },
+ { 'l', "Ll", "List posts" },
{ 'q', "QqXx", "Return to threads" },
{ '?', "?", "List these options" },
};
@@ -1074,6 +1075,10 @@ board_post_read(struct session *s, struct board *board
break;
case '>':
ret = POST_READ_RETURN_OLDER;
+ done = true;
+ break;
+ case 'l':
+ ret = POST_READ_RETURN_LIST;
done = true;
break;
case 'q':