1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-06 17:53:13 +02:00

aspell: remove useless test on max_suggestions

This commit is contained in:
Sébastien Helleu
2018-10-01 23:00:05 +02:00
parent ecdbaef288
commit 30121ff9df
+2 -2
View File
@@ -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);