1
0
mirror of https://github.com/irssi/irssi.git synced 2025-02-02 15:08:01 -05:00

removed a useless "fix"

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1614 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-07-14 18:19:08 +00:00 committed by cras
parent b365a78a5a
commit fca13a0fba

View File

@ -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) {