1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

" <tab>" in query printed glib warnings.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1677 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-07-29 04:38:31 +00:00 committed by cras
parent af86920d3f
commit c4fe917be3

View File

@ -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 BUT if we start completion with "/msg "<tab>, we don't
want to complete the /msg word, but instead complete empty want to complete the /msg word, but instead complete empty
word with /msg being in linestart. */ word with /msg being in linestart. */
if (*pos > 0 && line[*pos-1] == ' ') { if (*pos > 0 && line[*pos-1] == ' ' &&
(*linestart == '\0' || wordstart[-1] != ' ')) {
char *old; char *old;
old = linestart; old = linestart;