diff options
author | Timo Sirainen <cras@irssi.org> | 2001-07-29 04:38:31 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-07-29 04:38:31 +0000 |
commit | c4fe917be33f3984bbafd2dcded0eee2478899b2 (patch) | |
tree | b588d839cf9a37e62b54dc134c1ad3309052a96e /src | |
parent | af86920d3fea8e5bc84954c5894698e4c6002366 (diff) | |
download | irssi-c4fe917be33f3984bbafd2dcded0eee2478899b2.zip |
" <tab>" in query printed glib warnings.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1677 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-common/core/completion.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-common/core/completion.c b/src/fe-common/core/completion.c index 49e74783..c73b8d38 100644 --- a/src/fe-common/core/completion.c +++ b/src/fe-common/core/completion.c @@ -156,7 +156,8 @@ char *word_complete(WINDOW_REC *window, const char *line, int *pos) BUT if we start completion with "/msg "<tab>, we don't want to complete the /msg word, but instead complete empty word with /msg being in linestart. */ - if (*pos > 0 && line[*pos-1] == ' ') { + if (*pos > 0 && line[*pos-1] == ' ' && + (*linestart == '\0' || wordstart[-1] != ' ')) { char *old; old = linestart; |