diff options
author | Timo Sirainen <cras@irssi.org> | 2001-07-14 18:19:08 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-07-14 18:19:08 +0000 |
commit | fca13a0fba06fedcc1828ad76f53fa2424e6aec9 (patch) | |
tree | cba20e6d08fc7cd1e96d960234fa311643a84b1c /src/fe-common | |
parent | b365a78a5a8517b5292e6dcfcedf0fae25e55b2c (diff) | |
download | irssi-fca13a0fba06fedcc1828ad76f53fa2424e6aec9.zip |
removed a useless "fix"
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1614 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/core/completion.c | 3 |
1 files changed, 1 insertions, 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) { |