summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/aspell/weechat-aspell-bar-item.c3
-rw-r--r--src/plugins/aspell/weechat-aspell-config.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/aspell/weechat-aspell-bar-item.c b/src/plugins/aspell/weechat-aspell-bar-item.c
index bb2c78610..528eb154a 100644
--- a/src/plugins/aspell/weechat-aspell-bar-item.c
+++ b/src/plugins/aspell/weechat-aspell-bar-item.c
@@ -76,6 +76,9 @@ weechat_aspell_bar_item_suggest (void *data, struct t_gui_bar_item *item,
(void) data;
(void) item;
+ if (!aspell_enabled)
+ return NULL;
+
if (!window)
window = weechat_current_window ();
diff --git a/src/plugins/aspell/weechat-aspell-config.c b/src/plugins/aspell/weechat-aspell-config.c
index ad359f5b6..b710f1e95 100644
--- a/src/plugins/aspell/weechat-aspell-config.c
+++ b/src/plugins/aspell/weechat-aspell-config.c
@@ -129,8 +129,9 @@ weechat_aspell_config_change_enabled (void *data, struct t_config_option *option
aspell_enabled = weechat_config_boolean (option);
- /* refresh input */
+ /* refresh input and aspell suggestions */
weechat_bar_item_update ("input_text");
+ weechat_bar_item_update ("aspell_suggest");
}
/*