summaryrefslogtreecommitdiff
path: root/shed_commands.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2023-04-02 12:17:49 -0400
committerJakob Kaivo <jkk@ung.org>2023-04-02 12:17:49 -0400
commit3a34cf9cbffae162ac0727c02fa43c189cd0c454 (patch)
treed359d3764abfea0dfe482378f6290f4939e0a7ba /shed_commands.c
parent0348d326ae05a612a0d3d5a28b34f0898f063f7a (diff)
fix ^C
Diffstat (limited to 'shed_commands.c')
-rw-r--r--shed_commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shed_commands.c b/shed_commands.c
index adf31ab..51b986b 100644
--- a/shed_commands.c
+++ b/shed_commands.c
@@ -30,7 +30,7 @@ int shed_backspace(struct shed *e)
int shed_cancel(struct shed *e)
{
struct buffer *b = e->cur;
- write(STDOUT_FILENO, "^C", 2);
+ write(STDOUT_FILENO, "^C\n", 3);
b->nread = 0;
return 0;
}