mirror of
https://github.com/irssi/irssi.git
synced 2025-04-26 04:51:11 -05:00
Removed GLIB warning at certain condition with tab completion.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1606 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
38d855d4a9
commit
3eca462859
@ -188,7 +188,8 @@ char *word_complete(WINDOW_REC *window, const char *line, int *pos)
|
|||||||
/* replace the word in line - we need to return
|
/* replace the word in line - we need to return
|
||||||
a full new line */
|
a full new line */
|
||||||
result = g_string_new(line);
|
result = g_string_new(line);
|
||||||
g_string_erase(result, startpos, wordlen);
|
if (wordlen > 0)
|
||||||
|
g_string_erase(result, startpos, wordlen);
|
||||||
g_string_insert(result, startpos, complist->data);
|
g_string_insert(result, startpos, complist->data);
|
||||||
|
|
||||||
if (want_space) {
|
if (want_space) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user