Skip to content

Commit

Permalink
aspell: remove useless test on max_suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
flashcode committed Oct 1, 2018
1 parent ecdbaef commit 30121ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/aspell/weechat-aspell.c
Expand Up @@ -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;
}
}
Expand All @@ -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);
Expand Down

0 comments on commit 30121ff

Please sign in to comment.