add: numered
This commit is contained in:
parent
29c6b66b17
commit
6538b48c48
12
src/commands/numered.🗿
Normal file
12
src/commands/numered.🗿
Normal 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');
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user