nano

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

commit 3c35538e8b20e84d7c431043ea391d39111b67cd
parent 4f981cd5d9398feed8db02f7fd70403c70527942
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed, 16 Jun 2021 11:19:23 +0200

tweaks: add Schiermonnikoog to the list of friendly islands

(The commit message is a joke, of course.  Instead, this commit just
removes some unneeded comments and corrects one bit of whitespace.)

Diffstat:
Msrc/chars.c | 2+-
Msrc/help.c | 2+-
Msrc/nano.c | 6+++---
Msrc/prompt.c | 2+-
Msrc/search.c | 2+-
Msrc/text.c | 2+-
6 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/chars.c b/src/chars.c @@ -644,7 +644,7 @@ bool has_blank_char(const char *string) return *string; } -#endif /* ENABLE_NANORC && (!NANO_TINY || ENABLE_JUSTIFY) */ +#endif /* Return TRUE when the given string is empty or consists of only blanks. */ bool white_string(const char *string) diff --git a/src/help.c b/src/help.c @@ -310,7 +310,7 @@ void help_init(void) } } } -#endif /* !NANO_TINY */ +#endif } /* Hard-wrap the concatenated help text, and write it into a new buffer. */ diff --git a/src/nano.c b/src/nano.c @@ -1094,7 +1094,7 @@ void do_toggle(int flag) if (flag == AUTOINDENT || flag == BREAK_LONG_LINES || flag == SOFTWRAP) titlebar(NULL); - if (ISSET(MINIBAR) && (flag == NO_HELP || flag == LINE_NUMBERS )) + if (ISSET(MINIBAR) && (flag == NO_HELP || flag == LINE_NUMBERS)) return; if (flag == CONSTANT_SHOW) @@ -2203,7 +2203,7 @@ int main(int argc, char **argv) load_history(); if (ISSET(POSITIONLOG)) load_poshistory(); -#endif /* ENABLE_HISTORIES */ +#endif #ifndef NANO_TINY /* If a backup directory was specified and we're not in restricted mode, @@ -2237,7 +2237,7 @@ int main(int argc, char **argv) die(_("Bad quoting regex \"%s\": %s\n"), quotestr, message); } else free(quotestr); -#endif /* ENABLE_JUSTIFY */ +#endif #ifdef ENABLE_SPELLER /* If we don't have an alternative spell checker after reading the diff --git a/src/prompt.c b/src/prompt.c @@ -766,7 +766,7 @@ int do_yesno_prompt(bool all, const char *msg) choice = -2; } } -#endif /* ENABLE_MOUSE */ +#endif else if (func_from_key(&kbinput) == full_refresh) full_refresh(); #ifndef NANO_TINY diff --git a/src/search.c b/src/search.c @@ -550,7 +550,7 @@ ssize_t do_replace_loop(const char *needle, bool whole_word_only, openfile->current_x = bot_x; } } -#endif /* !NANO_TINY */ +#endif came_full_circle = FALSE; diff --git a/src/text.c b/src/text.c @@ -58,7 +58,7 @@ void do_mark(void) refresh_needed = TRUE; } } -#endif /* !NANO_TINY */ +#endif /* Insert a tab. Or, if --tabstospaces is in effect, insert the number * of spaces that a tab would normally take up at this position. */