changeset 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 80008fe2a4f2
children a54645448e00
files mcabber/src/screen.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;
           }