diff options
-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); |