back to scratko.xyz
summaryrefslogtreecommitdiff
path: root/dynamic_array.c
diff options
context:
space:
mode:
authorscratko <m@scratko.xyz>2024-06-20 18:38:11 +0300
committerscratko <m@scratko.xyz>2024-11-23 20:59:45 +0300
commit54679d85b1f2c1349bcbbc76b10d57a1e5137f23 (patch)
tree030bb7951a9a16dcdb8b1f47d1a5ff09dba8276c /dynamic_array.c
parentff38bddd4253b5adf08a84df34bfae32c8ae988d (diff)
downloadshell-54679d85b1f2c1349bcbbc76b10d57a1e5137f23.tar.gz
shell-54679d85b1f2c1349bcbbc76b10d57a1e5137f23.tar.bz2
shell-54679d85b1f2c1349bcbbc76b10d57a1e5137f23.zip
Shell-edit releaseshell-edit
Autocomplete program and file names (tab). Moving the cursor to edit commands (left and right arrows). Deleting a character in a command (backspace).
Diffstat (limited to 'dynamic_array.c')
-rw-r--r--dynamic_array.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dynamic_array.c b/dynamic_array.c
index 5a24cb8..c0a8723 100644
--- a/dynamic_array.c
+++ b/dynamic_array.c
@@ -1,4 +1,5 @@
#include "dynamic_array.h"
+
#include <stdlib.h>
void dynarr_create_array(struct dynamic_array *array)
@@ -31,7 +32,7 @@ void dynarr_copy_array(struct dynamic_array *array, char *new_arr)
new_arr[i] = array->arr[i];
}
-void dynarr_drop_word(struct dynamic_array *array)
+void dynarr_reset_array(struct dynamic_array *array)
{
array->last_element_index = -1;
}