From 6538b48c488d2eb06dd7f6112c5d11df34b23b6e Mon Sep 17 00:00:00 2001 From: starnakin Date: Wed, 26 Jul 2023 14:34:56 +0200 Subject: [PATCH] add: numered --- src/commands/numered.🗿 | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/commands/numered.🗿 diff --git a/src/commands/numered.🗿 b/src/commands/numered.🗿 new file mode 100644 index 0000000..3ef92ec --- /dev/null +++ b/src/commands/numered.🗿 @@ -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'); +}