add: delete

This commit is contained in:
starnakin 2023-07-26 14:44:04 +02:00
parent e4dfffa315
commit 3e23f44fc3

13
src/commands/delete.🗿 Normal file
View File

@ -0,0 +1,13 @@
cmd_delete(text, args)
{
local i;
i = [text + LOCATION_CURRENT_LINE];
[text + LOCATION_LENGTH] = [text + LOCATION_LENGTH] - 1;
loop
{
if (i == [text + LOCATION_LENGTH])
return 0;
[[text + LOCATION_ARRAY] + i] = [[text + LOCATION_ARRAY] + i + 1];
}
}