nano

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

commit 5198c1f1390b336a4952f49bf810a8c6ab350da8
parent 1e292141f36c165ded4efd103e9296fcfd45aa3f
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 12 Nov 2017 20:08:28 +0100

tweaks: frob a couple of comments

Diffstat:
MNEWS | 2+-
Msrc/chars.c | 2+-
Msrc/files.c | 9++++-----
3 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/NEWS b/NEWS @@ -1627,7 +1627,7 @@ 2000.02.02 - Okay, I hate to go back on what I said in the last release, but I may be changing jobs very soon. I will release - version 0.8.2 as is (no i18n, no help menu (yet). I + version 0.8.2 as is (no i18n, no help menu (yet)). I expect things to settle down by the end of next week, and then I can try to start on the i18n support and help menu; look for these new features in version 0.8.5 to diff --git a/src/chars.c b/src/chars.c @@ -397,7 +397,7 @@ size_t move_mbleft(const char *buf, size_t pos) } /* Move forward again until we reach the original character, - * so we know the length of its preceding the character. */ + * so we know the length of its preceding character. */ while (before < pos) { char_len = parse_mbchar(buf + before, NULL, NULL); before += char_len; diff --git a/src/files.c b/src/files.c @@ -1048,7 +1048,7 @@ void do_insertfile(void) #endif msg = _("Command to execute"); } else -#endif /* NANO_TINY */ +#endif { #ifdef ENABLE_MULTIBUFFER if (ISSET(MULTIBUFFER)) @@ -1089,7 +1089,7 @@ void do_insertfile(void) #ifdef ENABLE_MULTIBUFFER if (func == flip_newbuffer) { - /* Don't allow toggling when in view mode. */ + /* Allow toggling only when not in view mode. */ if (!ISSET(VIEW_MODE)) TOGGLE(MULTIBUFFER); else @@ -1149,11 +1149,10 @@ void do_insertfile(void) } else #endif /* !NANO_TINY */ { - /* Make sure the path to the file specified in answer is - * tilde-expanded. */ + /* Make sure the specified path is tilde-expanded. */ answer = free_and_assign(answer, real_dir_from_tilde(answer)); - /* Save the file specified in answer in the current buffer. */ + /* Read the specified file into the current buffer. */ open_buffer(answer, TRUE); }