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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user