Skip to content

Commit

Permalink
filter out specialDef from usercommands for completer
Browse files Browse the repository at this point in the history
  • Loading branch information
sunderme committed Nov 4, 2023
1 parent 89e6be2 commit 7c2782d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/latexdocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1906,6 +1906,7 @@ QList<CodeSnippet> LatexDocument::userCommandList() const
{
QList<CodeSnippet> csl;
foreach (UserCommandPair cmd, mUserCommandList) {
if(cmd.name.isEmpty()) continue; // filter out special def
csl.append(cmd.snippet);
}
std::sort(csl.begin(),csl.end());
Expand Down

0 comments on commit 7c2782d

Please sign in to comment.