MUC: Nickname completion starts from any non-space character
authorMikael Berthe <mikael@lilotux.net>
Sat, 16 Jun 2007 17:17:04 +0200
changeset 1239 eb9fc5d6d085
parent 1238 80008fe2a4f2
child 1240 a54645448e00
MUC: Nickname completion starts from any non-space character Thanks to bb for the suggestion.
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;
           }