nano

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

commit 3c959fd038a2ec9227c4ed91184f479b6d7319f7
parent f0bc94fd021ba612d5d0c6a41b46254c8824cdb6
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon,  6 May 2019 10:53:09 +0200

tweaks: drop a useless tidying-up call, as spelling does not use regexes

The integrated spell checker does not use regular expressions, and
'refresh_needed' is set to TRUE anyway, so the tidy_up_after_search()
call there is effectively a no-op.

Diffstat:
Msrc/proto.h | 1-
Msrc/text.c | 1-
2 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/src/proto.h b/src/proto.h @@ -477,7 +477,6 @@ void do_rcfiles(void); #endif /* ENABLE_NANORC */ /* Most functions in search.c. */ -void tidy_up_after_search(void); int findnextstr(const char *needle, bool whole_word_only, int modus, size_t *match_len, bool skipone, const linestruct *begin, size_t begin_x); void do_search(void); diff --git a/src/text.c b/src/text.c @@ -2502,7 +2502,6 @@ const char *do_int_speller(const char *tempfile_name) fix_spello(oneword); free(misspellings); - tidy_up_after_search(); refresh_needed = TRUE; /* Process the end of the three processes. */