|
|
|
@ -664,9 +664,12 @@ void Source::View::spellcheck(Gtk::TextIter iter) { |
|
|
|
auto words=std::make_shared<std::string>(); |
|
|
|
auto words=std::make_shared<std::string>(); |
|
|
|
const char *word; |
|
|
|
const char *word; |
|
|
|
while ((word = aspell_string_enumeration_next(elements))!= NULL) { |
|
|
|
while ((word = aspell_string_enumeration_next(elements))!= NULL) { |
|
|
|
if(words->size()==0) |
|
|
|
if(words->size()==0) { |
|
|
|
*words="Suggestions:"; |
|
|
|
*words="Suggestions:\n"; |
|
|
|
(*words)+=std::string("\n")+word; |
|
|
|
(*words)+=word; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
(*words)+=std::string(", ")+word; |
|
|
|
} |
|
|
|
} |
|
|
|
delete_aspell_string_enumeration(elements); |
|
|
|
delete_aspell_string_enumeration(elements); |
|
|
|
|
|
|
|
|
|
|
|
|