summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-11-16 13:28:24 +0100
committerSebastien Helleu <flashcode@flashtux.org>2012-11-16 13:28:24 +0100
commitc1389f8fe19068790d29e39c3f94b71b8c33ea03 (patch)
tree0648d9ed477d0ff8f73c4203f2b250b8f8314008
parentadec2dec0e3b906d605148dcc10c2ff4801af404 (diff)
downloadweechat-c1389f8fe19068790d29e39c3f94b71b8c33ea03.zip
aspell: refresh bar item "aspell_suggest" when aspell is enabled/disabled (bug #37744)
-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");
}
/*