add: delete
This commit is contained in:
parent
e4dfffa315
commit
3e23f44fc3
13
src/commands/delete.🗿
Normal file
13
src/commands/delete.🗿
Normal 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];
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user