summaryrefslogtreecommitdiff
path: root/src/plugins/aspell
diff options
context:
space:
mode:
authorNils Görs <weechatter@arcor.de>2019-01-26 22:38:22 +0100
committerSébastien Helleu <flashcode@flashtux.org>2019-01-26 22:38:22 +0100
commit68bdc5fb09919891bbd5e6ab2dbb8b419293fece (patch)
treebb20598f8ceaadbb55b5adc98c44ef60411edf1e /src/plugins/aspell
parent5a681f3c5e8cd473ef63c0cea92b201d3239caa4 (diff)
downloadweechat-68bdc5fb09919891bbd5e6ab2dbb8b419293fece.zip
aspell: set a misspelled word without suggestions in local variable "aspell_suggest" (closes #1288)
Diffstat (limited to 'src/plugins/aspell')
-rw-r--r--src/plugins/aspell/weechat-aspell.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/aspell/weechat-aspell.c b/src/plugins/aspell/weechat-aspell.c
index 7e17e9d47..7e8249d4e 100644
--- a/src/plugins/aspell/weechat-aspell.c
+++ b/src/plugins/aspell/weechat-aspell.c
@@ -894,7 +894,9 @@ weechat_aspell_modifier_cb (const void *pointer, void *data,
}
else
{
- weechat_buffer_set (buffer, "localvar_del_aspell_suggest", "");
+ /* set a misspelled word in buffer, also without suggestions */
+ weechat_buffer_set (buffer, "localvar_set_aspell_suggest",
+ word_for_suggestions);
}
free (word_for_suggestions);
}