Skip to content

Commit 18e0dcc

Browse files
committed
probably fix #3919
reduce addng expl3 commands to phrase completion by excluding unknown commands
1 parent c741f3f commit 18e0dcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/latexdocument.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ void LatexDocument::interpretCommandArguments(QDocumentLineHandle *dlh, const in
10411041
continue;
10421042
}
10431043
/// auto user command for \symbol_...
1044-
if(j+2<tl.length()){
1044+
if(j+2<tl.length() && tk.type==Token::command){
10451045
Token tk2=tl.at(j+1);
10461046
if(tk2.getText()=="_"){
10471047
QString txt=cmd+"_";

0 commit comments

Comments
 (0)