AmendHub

Download:

jcs

/

subtext

/

amendments

/

213

board: Put the message index in the prompt, not the message id

It can be confusing when a user hits '1' to view the message in the
list showing "1 ..." but the prompt ends up showing "Boards:blah:4".

jcs made amendment 213 over 2 years ago
--- board.c Fri Jul 15 21:38:25 2022 +++ board.c Sun Jul 17 00:19:07 2022 @@ -591,8 +591,7 @@ board_post_read(struct session *s, struct board *board session_output(s, post.body, post.body_size); session_printf(s, "\r\n"); - snprintf(prompt, sizeof(prompt), "Boards:%s:%ld", board->name, - post.id); + snprintf(prompt, sizeof(prompt), "Boards:%s:%d", board->name, idx); while (!done && !s->ending) { c = session_menu(s, thread.subject, prompt, dopts,