From fca13a0fba06fedcc1828ad76f53fa2424e6aec9 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 14 Jul 2001 18:19:08 +0000 Subject: [PATCH] removed a useless "fix" git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1614 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/completion.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/fe-common/core/completion.c b/src/fe-common/core/completion.c index b9a2b3b0..16427610 100644 --- a/src/fe-common/core/completion.c +++ b/src/fe-common/core/completion.c @@ -188,8 +188,7 @@ char *word_complete(WINDOW_REC *window, const char *line, int *pos) /* replace the word in line - we need to return a full new line */ result = g_string_new(line); - if (wordlen > 0) - g_string_erase(result, startpos, wordlen); + g_string_erase(result, startpos, wordlen); g_string_insert(result, startpos, complist->data); if (want_space) {