mcabber/src/screen.c
changeset 1239 eb9fc5d6d085
parent 1229 e9ea1497ac9d
child 1245 e6ddd19956eb
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;