diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2018-10-01 23:00:05 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2018-10-01 23:00:05 +0200 |
commit | 30121ff9df1e874b1417c30b5b9e0a53d14d65d2 (patch) | |
tree | e6dafc8d96d4808d5e32f5ee69cf98ef40899ec2 | |
parent | ecdbaef2886b8318e7b15bdac480df43a8b49a9c (diff) | |
download | weechat-30121ff9df1e874b1417c30b5b9e0a53d14d65d2.zip |
aspell: remove useless test on max_suggestions
-rw-r--r-- | src/plugins/aspell/weechat-aspell.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/aspell/weechat-aspell.c b/src/plugins/aspell/weechat-aspell.c index 44c453647..36705e3db 100644 --- a/src/plugins/aspell/weechat-aspell.c +++ b/src/plugins/aspell/weechat-aspell.c @@ -553,7 +553,7 @@ weechat_aspell_get_suggestions (struct t_aspell_speller_buffer *speller_buffer, strcat (suggestions, (num_suggestions == 0) ? "/" : ","); strcat (suggestions, ptr_word); num_suggestions++; - if ((max_suggestions >= 0) && (num_suggestions == max_suggestions)) + if (num_suggestions == max_suggestions) break; } } @@ -580,7 +580,7 @@ weechat_aspell_get_suggestions (struct t_aspell_speller_buffer *speller_buffer, strcat (suggestions, (num_suggestions == 0) ? "/" : ","); strcat (suggestions, ptr_word); num_suggestions++; - if ((max_suggestions >= 0) && (num_suggestions == max_suggestions)) + if (num_suggestions == max_suggestions) break; } delete_aspell_string_enumeration (elements); |