summaryrefslogtreecommitdiff
path: root/shed_commands.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@x1-nano.kaivo.local>2023-04-01 22:46:34 -0400
committerJakob Kaivo <jkk@x1-nano.kaivo.local>2023-04-01 22:46:34 -0400
commit23e9c66180b95e5b1ba03ae739c04ebefa183e05 (patch)
tree91dd9ac0d4270208b770bbc85766d5918c8e2d5a /shed_commands.c
parent73611cd92215d478a549a6c869450376efc26393 (diff)
begin work on command history (need to fix so it doesn't clear screen)
Diffstat (limited to 'shed_commands.c')
-rw-r--r--shed_commands.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shed_commands.c b/shed_commands.c
index 0c2bdfc..adf31ab 100644
--- a/shed_commands.c
+++ b/shed_commands.c
@@ -108,7 +108,8 @@ int shed_execute(struct shed *e)
{
struct buffer *b = e->cur;
b->pos = b->nread;
- shed_insert_char(b, '\n');
+ //shed_insert_char(b, '\n');
+ write(STDOUT_FILENO, "\n", 1);
if (e->handle == shed_handle_edit) {
e->handle = shed_handle_insert;
}