summaryrefslogtreecommitdiff
path: root/src/minibuffer.c
diff options
context:
space:
mode:
authorAlbert Cervin <albert@acervin.com>2023-02-02 00:13:53 +0100
committerAlbert Cervin <albert@acervin.com>2023-02-02 00:13:53 +0100
commitf17880d5ec783d600a3f74dff3d30acfc7d1e06c (patch)
tree6ff9e80370e88dffdcd56334470e8f8f3388113f /src/minibuffer.c
parent1cd66cac903151396a7513f8e009f6f654561daf (diff)
downloaddged-f17880d5ec783d600a3f74dff3d30acfc7d1e06c.tar.gz
dged-f17880d5ec783d600a3f74dff3d30acfc7d1e06c.tar.xz
dged-f17880d5ec783d600a3f74dff3d30acfc7d1e06c.zip
Add kill-ring pasting
M-y can cycle through earlier cut/copies. Also fix minibuffer tokenization error and error when deleting text. Vertical scrolling also works as it should now.
Diffstat (limited to 'src/minibuffer.c')
-rw-r--r--src/minibuffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/minibuffer.c b/src/minibuffer.c
index 41c669c..0d7f4e5 100644
--- a/src/minibuffer.c
+++ b/src/minibuffer.c
@@ -40,7 +40,7 @@ int32_t execute(struct command_ctx ctx, int argc, const char *argv[]) {
uint8_t byte = line.text[bytei];
if (byte == ' ') {
l[bytei] = '\0';
- argv[argc] = l + bytei;
+ argv[argc] = l + bytei + 1;
++argc;
}
}