Skip to content

Commit

Permalink
fix updating keyvals for completion
Browse files Browse the repository at this point in the history
if updated value differ in size from previous values, perform update
Only skip if size is identical
  • Loading branch information
sunderme committed Sep 11, 2024
1 parent 007b01e commit 89d3411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/latexcompleter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ CompletionWord CompletionListModel::getLastWord()

void CompletionListModel::setKeyValWords(const QString &name, const QSet<QString> &newwords)
{
if(keyValLists.contains(name)){
if(keyValLists.contains(name) && keyValLists[name].count()==newwords.count()){
// don't recreate existing keyval list
return;
}
Expand Down

0 comments on commit 89d3411

Please sign in to comment.