nano

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

commit 7b9bd653625e2003394f610d8ebe5bd5e5b6cd65
parent f72fecee9b34bbde83dbe3ba449b0a010d7896fc
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed, 24 Jan 2018 10:29:50 +0100

tweaks: drop a useless assert, and don't abort over an unhandled option

Diffstat:
Msrc/nano.c | 4----
Msrc/rcfile.c | 3+--
2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/nano.c b/src/nano.c @@ -2636,7 +2636,6 @@ int main(int argc, char **argv) refresh_needed = TRUE; } #endif - if (currmenu != MMAIN) display_main_list(); @@ -2663,7 +2662,4 @@ int main(int argc, char **argv) /* Read in and interpret keystrokes. */ do_input(TRUE); } - - /* We should never get here. */ - assert(FALSE); } diff --git a/src/rcfile.c b/src/rcfile.c @@ -1167,8 +1167,7 @@ void parse_rcfile(FILE *rcstream, bool syntax_only) tabsize = -1; } free(option); - } else - assert(FALSE); + } } #ifdef ENABLE_COLOR