From 30121ff9df1e874b1417c30b5b9e0a53d14d65d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Mon, 1 Oct 2018 23:00:05 +0200 Subject: aspell: remove useless test on max_suggestions --- src/plugins/aspell/weechat-aspell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins') 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); -- cgit v1.2.3