# HG changeset patch # User Mikael Berthe # Date 1182007024 -7200 # Node ID eb9fc5d6d085bb9767ac7da397a807a449e666a6 # Parent 80008fe2a4f2636ab6958ed951cb09c0b959d764 MUC: Nickname completion starts from any non-space character Thanks to bb for the suggestion. diff -r 80008fe2a4f2 -r eb9fc5d6d085 mcabber/src/screen.c --- 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; }