Mercurial > ~mikael > mcabber > hg
diff mcabber/src/screen.c @ 1239:eb9fc5d6d085
MUC: Nickname completion starts from any non-space character
Thanks to bb for the suggestion.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 16 Jun 2007 17:17:04 +0200 |
parents | e9ea1497ac9d |
children | e6ddd19956eb |
line wrap: on
line diff
--- a/mcabber/src/screen.c Sat Jun 16 12:30:43 2007 +0200 +++ b/mcabber/src/screen.c Sat Jun 16 17:17:04 2007 +0200 @@ -2860,7 +2860,7 @@ // line. Let's try a bit harder and complete the current word. row = prev_char(ptr_inputline, inputLine); while (row >= inputLine) { - if (!iswalnum(get_char(row)) && get_char(row) != '_') { + if (iswspace(get_char(row)) || get_char(row) == '(') { row = next_char((char*)row); break; }