Compare commits
No commits in common. "0358eefcae81c661614a2dc42b2b60a1ac105719" and "e4dfffa315f119af782657be3e5024e3d7e1a734" have entirely different histories.
0358eefcae
...
e4dfffa315
@ -1,13 +0,0 @@
|
|||||||
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];
|
|
||||||
}
|
|
||||||
}
|
|
@ -73,13 +73,6 @@ main()
|
|||||||
cmd_print(text, NULL);
|
cmd_print(text, NULL);
|
||||||
else if (strcmp(cmd, "n") == 0)
|
else if (strcmp(cmd, "n") == 0)
|
||||||
cmd_numbered(text, NULL);
|
cmd_numbered(text, NULL);
|
||||||
else if (strcmp(cmd, "d") == 0)
|
|
||||||
cmd_delete(text, NULL);
|
|
||||||
else
|
|
||||||
{
|
|
||||||
putstr("cmd not foud");
|
|
||||||
putchar('\n');
|
|
||||||
}
|
|
||||||
free(cmd);
|
free(cmd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user