sled

Једноставни уређивач текста
git clone https://git.sr.ht/~strahinja/sled
Дневник | Датотеке | Референце | ПРОЧИТАЈМЕ | ЛИЦЕНЦА

чување 0976c3af6f316c4b33f31dd0ac5414b78dd4071d
родитељ a55be18ef394913a9be698c37137db0419288e2a
Аутор: Страхиња Радић <sr@strahinja.org>
Датум:   Wed,  7 Aug 2024 21:35:58 +0200

patch/syntax.patch: Remove cast to const char

Diffstat:
Mpatch/syntax.patch | 14+++++++-------
измењених датотека: 1, додавања: 7(+), брисања: 7(-)

diff --git a/patch/syntax.patch b/patch/syntax.patch @@ -1,6 +1,6 @@ -From fb80cff14430251ddd845727af64307397fed61a Mon Sep 17 00:00:00 2001 +From c732f3fbd96087c89640584cf56b2ee293892629 Mon Sep 17 00:00:00 2001 From: Страхиња Радић <sr@strahinja.org> -Date: Wed Aug 7 19:09:36 2024 UTC +Date: Wed Aug 7 19:35:09 2024 UTC Subject: [PATCH] Add syntax highlighting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 @@ -16,7 +16,7 @@ but gets the job done. TODO: Optimization. 4 files changed, 645 insertions(+), 42 deletions(-) diff --git a/config.def.h b/config.def.h -index 39ca2835b..fb80cff14 100644 +index a55be18ef..c732f3fbd 100644 --- a/config.def.h +++ b/config.def.h @@ -239,6 +239,13 @@ static const struct Key command_keys[] = { @@ -34,7 +34,7 @@ index 39ca2835b..fb80cff14 100644 {.format = "%s%s", .callback = format_filename, diff --git a/draw.c b/draw.c -index 39ca2835b..fb80cff14 100644 +index a55be18ef..c732f3fbd 100644 --- a/draw.c +++ b/draw.c @@ -2,6 +2,7 @@ @@ -556,7 +556,7 @@ index 39ca2835b..fb80cff14 100644 + } + + /* Check for numeric literals */ -+ if (isdigit((const char)curline->text[ti]) ++ if (isdigit(curline->text[ti]) + && ((ti == 0) || ((ti > 0) && !isalnum(curline->text[ti - 1])))) + { + literal_start = ti; @@ -740,7 +740,7 @@ index 39ca2835b..fb80cff14 100644 } diff --git a/draw.h b/draw.h -index 39ca2835b..fb80cff14 100644 +index a55be18ef..c732f3fbd 100644 --- a/draw.h +++ b/draw.h @@ -37,17 +37,58 @@ enum { @@ -863,7 +863,7 @@ index 39ca2835b..fb80cff14 100644 + const uint16_t sbg, const int ssi, const int sei, const uint16_t slfg, + const uint16_t slbg); diff --git a/sled.c b/sled.c -index 39ca2835b..fb80cff14 100644 +index a55be18ef..c732f3fbd 100644 --- a/sled.c +++ b/sled.c @@ -67,6 +67,18 @@ extern const char* prompt_reread_dirty;