[gaim-migrate @ 1872]

Sat, 19 May 2001 18:24:45 +0000

author
Eric Warmenhoven <warmenhoven@yahoo.com>
date
Sat, 19 May 2001 18:24:45 +0000
changeset 1862
930fbe4f89cf
parent 1861
7137bd5cc3f2
child 1863
af03c531e79c

[gaim-migrate @ 1872]
fun stuff

plugins/spellchk.c file | annotate | diff | comparison | revisions
--- 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:

mercurial