| 252 static GList* misspelled_suggest(char *word) { |
252 static GList* misspelled_suggest(char *word) { |
| 253 char *buf; |
253 char *buf; |
| 254 char *newword; |
254 char *newword; |
| 255 GList *l = NULL; |
255 GList *l = NULL; |
| 256 int count; |
256 int count; |
| |
257 |
| |
258 if (!word) |
| |
259 return NULL; |
| 257 |
260 |
| 258 buf = g_strdup_printf("^%s\n", word); /* guard against ispell control chars */ |
261 buf = g_strdup_printf("^%s\n", word); /* guard against ispell control chars */ |
| 259 writetext(buf); |
262 writetext(buf); |
| 260 g_free(buf); |
263 g_free(buf); |
| 261 buf = readresponse(); |
264 buf = readresponse(); |