From d63c93ae1dbb1254a92e8e4fafc39fe8d69d00ae Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Fri, 13 Jan 2017 22:36:44 +0100 Subject: [PATCH] Merge pull request #613 from ailin-nemui/fix_completion fix regression in completion --- src/fe-common/core/completion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fe-common/core/completion.c b/src/fe-common/core/completion.c index 76dfbb79..914ba80b 100644 --- a/src/fe-common/core/completion.c +++ b/src/fe-common/core/completion.c @@ -191,7 +191,7 @@ char *word_complete(WINDOW_REC *window, const char *line, int *pos, int erase, i g_strdup_printf("%s%c%s", /* do not accidentally duplicate the word separator */ line == wordstart - 1 ? "" : linestart, - wordstart[-1], word); + old_wordstart[-1], word); g_free(old); g_free(word);