comparison 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
comparison
equal deleted inserted replaced
1238:80008fe2a4f2 1239:eb9fc5d6d085
2858 if (n == 0 && nrow == -1) { 2858 if (n == 0 && nrow == -1) {
2859 // This is a MUC room and we can't complete from the beginning of the 2859 // This is a MUC room and we can't complete from the beginning of the
2860 // line. Let's try a bit harder and complete the current word. 2860 // line. Let's try a bit harder and complete the current word.
2861 row = prev_char(ptr_inputline, inputLine); 2861 row = prev_char(ptr_inputline, inputLine);
2862 while (row >= inputLine) { 2862 while (row >= inputLine) {
2863 if (!iswalnum(get_char(row)) && get_char(row) != '_') { 2863 if (iswspace(get_char(row)) || get_char(row) == '(') {
2864 row = next_char((char*)row); 2864 row = next_char((char*)row);
2865 break; 2865 break;
2866 } 2866 }
2867 if (row == inputLine) 2867 if (row == inputLine)
2868 break; 2868 break;