From 68bdc5fb09919891bbd5e6ab2dbb8b419293fece Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20G=C3=B6rs?= Date: Sat, 26 Jan 2019 22:38:22 +0100 Subject: aspell: set a misspelled word without suggestions in local variable "aspell_suggest" (closes #1288) --- src/plugins/aspell/weechat-aspell.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/plugins/aspell') 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); } -- cgit v1.2.3