summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2013-01-11 16:07:45 +0100
committerSebastien Helleu <flashcode@flashtux.org>2013-01-11 16:07:45 +0100
commitdb62b272b5010ad6c3013991fd8bd8f6003d3ec1 (patch)
tree7ed63a26bd159ce4e9a8961d3984549979f9291d /src/plugins
parent57024ab1e4271f232c481ffdf0fea7736c7a9220 (diff)
downloadweechat-db62b272b5010ad6c3013991fd8bd8f6003d3ec1.zip
Revert "aspell: store dictionaries in buffer local variable "aspell_dict""
This reverts commit 8b61a557640e62e67f6eb7349c3a12cca9b43b5e. The local variable in buffers introduced new display bugs and would need some extra code and optimizations to fix. This will be reintroduced after the release of version 0.4.0.
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/aspell/weechat-aspell-bar-item.c3
-rw-r--r--src/plugins/aspell/weechat-aspell.c3
2 files changed, 1 insertions, 5 deletions
diff --git a/src/plugins/aspell/weechat-aspell-bar-item.c b/src/plugins/aspell/weechat-aspell-bar-item.c
index 44e469e26..a23614b49 100644
--- a/src/plugins/aspell/weechat-aspell-bar-item.c
+++ b/src/plugins/aspell/weechat-aspell-bar-item.c
@@ -50,8 +50,7 @@ weechat_aspell_bar_item_dict (void *data, struct t_gui_bar_item *item,
buffer = weechat_window_get_pointer (window, "buffer");
if (buffer)
{
- dict_list = weechat_buffer_get_string (buffer,
- "localvar_aspell_dict");
+ dict_list = weechat_aspell_get_dict (buffer);
if (dict_list)
return strdup (dict_list);
}
diff --git a/src/plugins/aspell/weechat-aspell.c b/src/plugins/aspell/weechat-aspell.c
index 276ad7887..039c4fa9d 100644
--- a/src/plugins/aspell/weechat-aspell.c
+++ b/src/plugins/aspell/weechat-aspell.c
@@ -362,10 +362,7 @@ weechat_aspell_create_spellers (struct t_gui_buffer *buffer)
}
weechat_string_free_split (argv);
}
- weechat_buffer_set (buffer, "localvar_set_aspell_dict", dict_list);
}
- else
- weechat_buffer_set (buffer, "localvar_del_aspell_dict", "");
weechat_bar_item_update ("aspell_dict");
}
}