add: numered

This commit is contained in:
starnakin 2023-07-26 14:34:56 +02:00
parent 29c6b66b17
commit 6538b48c48

12
src/commands/numered.🗿 Normal file
View File

@ -0,0 +1,12 @@
cmd_numbered(text, args)
{
if ([text + LOCATION_LENGTH] == 0)
{
putstr("Empty buffer\n");
return 1;
}
putnum([text + LOCATION_CURRENT_LINE] + 1);
putchar('\t');
putstr([[text + LOCATION_ARRAY] + [text + LOCATION_CURRENT_LINE]]);
putchar('\n');
}