Compare commits
2 Commits
29c6b66b17
...
e4dfffa315
Author | SHA1 | Date | |
---|---|---|---|
e4dfffa315 | |||
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');
|
||||
}
|
@ -2,7 +2,7 @@ cmd_print(text, args)
|
||||
{
|
||||
if ([text + LOCATION_LENGTH] == 0)
|
||||
{
|
||||
putstr("Empty file\n");
|
||||
putstr("Empty buffer\n");
|
||||
return 1;
|
||||
}
|
||||
putstr([[text + LOCATION_ARRAY] + [text + LOCATION_CURRENT_LINE]]);
|
||||
|
Loading…
Reference in New Issue
Block a user