From 32fe95d35eff7f72053a7eee99ea76b3d4c312c2 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Thu, 26 May 2005 19:48:41 +0000 Subject: [PATCH] revert last change for now, as it breaks the display of filename matches git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2557 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 3 --- src/files.c | 5 +---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9954e96c..2e4fe494 100644 --- a/ChangeLog +++ b/ChangeLog @@ -55,9 +55,6 @@ CVS code - long instead of an unsigned int. (DLR) cwd_tab_completion(), browser_init() - Rename variable next to nextdir to avoid confusion. (DLR) - input_tab() - - Make sure that we don't set *place to the middle of a - multibyte character. (DLR) do_browser() - Don't treat NANO_CANCEL_KEY as NANO_EXIT_KEY anymore, for consistency. (DLR) diff --git a/src/files.c b/src/files.c index 08f90903..d704f6ab 100644 --- a/src/files.c +++ b/src/files.c @@ -2225,10 +2225,7 @@ char *input_tab(char *buf, size_t *place, bool *lastwastab, bool *list) charmove(buf + common_len, buf + *place, buflen - *place + 1); charcpy(buf, mzero, common_len); - - /* Make sure that we don't advance the cursor to the middle - * of a multibyte character. */ - *place = mbstrnlen(buf, common_len); + *place = common_len; } else if (*lastwastab == FALSE || num_matches < 2) *lastwastab = TRUE; else {