nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 9bd7d62c107c7bf868f4b5f50ce12645110f71e7
parent 735a608e80eb80a85e906a0737166dfff8796ebe
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon, 11 Jan 2021 19:22:40 +0100

tweaks: do not change the pointer, but move the content of the string

Diffstat:
Msrc/nano.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nano.c b/src/nano.c @@ -2168,7 +2168,7 @@ int main(int argc, char **argv) } /* Strip leading whitespace from the speller command, if any. */ while (alt_speller && *alt_speller && isblank(*alt_speller)) - alt_speller++; + memmove(alt_speller, alt_speller + 1, strlen(alt_speller)); #endif /* If an rcfile undid the default settings, copy it to the new flags. */