Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sunderme committed Mar 2, 2024
1 parent 8798d76 commit 7db2711
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/latexcompleter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -836,8 +836,10 @@ bool CompletionListModel::isNextCharPossible(const QChar &c)
LatexCompleter::config->caseSensitive == LatexCompleterConfig::CCS_CASE_SENSITIVE)
cs = Qt::CaseSensitive;
QString extension = curWord + c;
foreach (const CompletionWord &cw, words)
if (cw.word.startsWith(extension, cs)) return true;
foreach (const CompletionWord &cw, words){
// disregard spaces at the end of the word for assuming a word was entered completely (#3544)
if (cw.word.trimmed().startsWith(extension, cs)) return true;
}
return false;
}

Expand Down

0 comments on commit 7db2711

Please sign in to comment.