[PATCH] cursor visible after posting
Hi, after posting an article from selection or group level the cursor remains visible in the lower left corner. Dennis diff -urp tin-2.6.2_r6/src/group.c tin-2.6.2_r7/src/group.c --- tin-2.6.2_r6/src/group.c 2022-02-17 14:47:44.000000000 +0100 +++ tin-2.6.2_r7/src/group.c 2022-03-01 21:36:22.000000000 +0100 @@ -734,8 +734,10 @@ group_page( break; case GLOBAL_POST: /* post an article */ - if (post_article(group->name)) + if (post_article(group->name)) { + cursoroff(); show_group_page(); + } break; case GLOBAL_POSTPONED: /* post postponed article */ diff -urp tin-2.6.2_r6/src/select.c tin-2.6.2_r7/src/select.c --- tin-2.6.2_r6/src/select.c 2022-02-17 14:46:59.000000000 +0100 +++ tin-2.6.2_r7/src/select.c 2022-03-01 21:36:16.000000000 +0100 @@ -532,8 +532,10 @@ selection_page( info_message(_(txt_cannot_post)); break; } - if (post_article(buf)) + if (post_article(buf)) { + cursoroff(); show_selection_page(); + } break; case GLOBAL_POSTPONED: /* post postponed article */
On Tue, Mar 01, 2022 at 09:45:11PM +0100, Dennis Preiser wrote:
diff -urp tin-2.6.2_r6/src/group.c tin-2.6.2_r7/src/group.c --- tin-2.6.2_r6/src/group.c 2022-02-17 14:47:44.000000000 +0100 +++ tin-2.6.2_r7/src/group.c 2022-03-01 21:36:22.000000000 +0100 @@ -734,8 +734,10 @@ group_page(
diff -urp tin-2.6.2_r6/src/select.c tin-2.6.2_r7/src/select.c --- tin-2.6.2_r6/src/select.c 2022-02-17 14:46:59.000000000 +0100 +++ tin-2.6.2_r7/src/select.c 2022-03-01 21:36:16.000000000 +0100 @@ -532,8 +532,10 @@ selection_page(
Alternatively, we could use clear_message() in post.c:post_loop(), as we do in other places there. Dennis diff -urp tin-2.6.2_r6/src/post.c tin-2.6.2_r8/src/post.c --- tin-2.6.2_r6/src/post.c 2022-02-16 08:54:15.000000000 +0100 +++ tin-2.6.2_r8/src/post.c 2022-03-02 20:37:10.000000000 +0100 @@ -2289,6 +2289,7 @@ post_article_loop: append_file(dead_article, dead_articles); wait_message(2, _(txt_art_rejected), dead_article); } + clear_message(); return ret_code; } @@ -2521,6 +2522,7 @@ post_article_postponed: if (tinrc.unlink_article) unlink(article_name); + clear_message(); return ret_code; }
participants (1)
-
Dennis Preiser