diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-01-11 17:25:53 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-01-11 17:25:53 +0100 |
commit | a6bc15e69d832da5b3d417016703655dab3a0eb3 (patch) | |
tree | 5a7409f8731a67c24b4a1abb626dab9c2d419d88 /src | |
parent | db62b272b5010ad6c3013991fd8bd8f6003d3ec1 (diff) | |
download | weechat-a6bc15e69d832da5b3d417016703655dab3a0eb3.zip |
aspell: fix spellers used when switching buffer
The bug happened when two buffers have different number of dictionaries and start
with same dictionaries. For example buffer #1 with [en,fr] and buffer #2 with [en].
When switching from buffer #1 to buffer #2, aspell does not use only [en], but [en,fr].
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/aspell/weechat-aspell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/aspell/weechat-aspell.c b/src/plugins/aspell/weechat-aspell.c index 039c4fa9d..9dd03f3a0 100644 --- a/src/plugins/aspell/weechat-aspell.c +++ b/src/plugins/aspell/weechat-aspell.c @@ -325,7 +325,7 @@ weechat_aspell_spellers_already_ok (const char *dict_list) } ptr_speller = ptr_speller->next_speller; } - if (ptr_speller && ptr_speller->next_speller) + if (ptr_speller) rc = 0; weechat_string_free_split (argv); } |