src/gtkspell.c

changeset 2461
f0fc89bc6f8d
parent 2457
1b507a97b824
child 2517
b61cca95c708
equal deleted inserted replaced
2460:d573307665ac 2461:f0fc89bc6f8d
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();

mercurial