diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-03-03 18:42:12 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-03-03 18:42:12 +0100 |
commit | 92bc700349d7ff037926834c5fc4e3fc9447315d (patch) | |
tree | 0ab91eeb7e5ede615afd882fc9e42b4a523ec829 /src/gui/gui-completion.c | |
parent | a852d3af4b39e5907f256405983d2c2d2140bd5e (diff) | |
download | weechat-92bc700349d7ff037926834c5fc4e3fc9447315d.zip |
Fix completion bug for commands when input starts with two command chars (like //)
Diffstat (limited to 'src/gui/gui-completion.c')
-rw-r--r-- | src/gui/gui-completion.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/gui-completion.c b/src/gui/gui-completion.c index f509c5481..ef29cabc7 100644 --- a/src/gui/gui-completion.c +++ b/src/gui/gui-completion.c @@ -1551,7 +1551,7 @@ gui_completion_find_context (struct t_gui_completion *completion, /* look for context */ gui_completion_free_data (completion); gui_completion_buffer_init (completion, completion->buffer); - command = (string_input_for_buffer (data)) ? 0 : 1; + command = (string_is_command_char (data)) ? 1 : 0; command_arg = 0; i = 0; while (i < pos) |