~sircmpwn/gmni-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH v2] gmnlm: output newline when quiting via Control-D

Details
Message ID
<20220109192046.3120-1-temp.xanomes@volny.cz>
DKIM signature
pass
Download raw message
Patch: +1 -0
It is common practice to quit programs reading from stdin by sending
EOF to their input. This commit ensures such an exit is functionally
equivalent to a regular exit via the 'q' command.
---
Apologies, forgot to properly verify it works. This should do.

 src/gmnlm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gmnlm.c b/src/gmnlm.c
index b30d602..536914a 100644
--- a/src/gmnlm.c
+++ b/src/gmnlm.c
@@ -553,6 +553,7 @@ do_prompts(const char *prompt, struct browser *browser)
	char *in = NULL;
	ssize_t n = getline(&in, &l, browser->tty);
	if (n == -1 && feof(browser->tty)) {
		fputc('\n', browser->tty);
		result = PROMPT_QUIT;
		goto exit;
	}
-- 
2.34.1
Details
Message ID
<CH1TGY8KY1B4.3QQK0N4G0HVU@taiga>
In-Reply-To
<20220109192046.3120-1-temp.xanomes@volny.cz> (view parent)
DKIM signature
fail
Download raw message
DKIM signature: fail
Thanks!

To git@git.sr.ht:~sircmpwn/gmni
   0796563..5f4c617  master -> master
Reply to thread Export thread (mbox)