changeset 1862:fd60aa357882

[gaim-migrate @ 1872] fun stuff committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 19 May 2001 18:24:45 +0000
parents 7ec37e31e5eb
children bf2434d36e54
files plugins/spellchk.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/spellchk.c	Sat May 19 17:57:49 2001 +0000
+++ b/plugins/spellchk.c	Sat May 19 18:24:45 2001 +0000
@@ -192,7 +192,7 @@
 	for (pos = 0; pos < strlen(m) && count <= word; pos++) {
 		switch (state) {
 		case 0:
-			if (isalnum(m[pos])) {
+			if (!isspace(m[pos]) && !ispunct(m[pos])) {
 				count++;
 				state = 1;
 			} else if (m[pos] == '<')
@@ -201,7 +201,7 @@
 		case 1:
 			if (m[pos] == '<')
 				state = 2;
-			else if (!isalnum(m[pos]))
+			else if (isspace(m[pos]) || ispunct(m[pos]))
 				state = 0;
 			break;
 		case 2: