nano

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

commit 0f64fe0af20b24428a6ceebd3063ce8b3930588c
parent e86dc0381cf65ce62294aae4a0b6ef8282953b5b
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Sat, 20 Feb 2016 12:30:07 +0000

Parsing a character in the correct buffer: in the first match
instead of in the given string.  This fixes Savannah bug #47199.


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5654 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
MChangeLog | 2++
Msrc/files.c | 2+-
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog @@ -2,6 +2,8 @@ * src/search.c (get_history_completion): Avoid leaking memory when tabbing on a string that does not occur in the history. This fixes Savannah bug #47124 reported by Mike Frysinger. + * src/files.c (input_tab): Parse a character in the correct + buffer. This fixes Savannah bug #47199. 2016-02-18 Benno Schulenberg <bensberg@justemail.net> * src/search.c (do_replace_loop), src/text.c (do_int_spell_fix), diff --git a/src/files.c b/src/files.c @@ -2830,7 +2830,7 @@ char *input_tab(char *buf, bool allow_files, size_t *place, bool if (match < num_matches || matches[0][common_len] == '\0') break; - common_len += parse_mbchar(buf + common_len, NULL, NULL); + common_len += parse_mbchar(matches[0] + common_len, NULL, NULL); } free(match1_mb);