Skip to content

Commit

Permalink
enable normalCompletion of commands in text env
Browse files Browse the repository at this point in the history
  • Loading branch information
sunderme committed Sep 8, 2018
1 parent 97bf709 commit 54192e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/texstudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4427,8 +4427,9 @@ void Texstudio::normalCompletion()
}

Token::TokenType type = tk.type;
if (tk.subtype != Token::none)
if (tk.subtype != Token::none && type!=Token::command && type!=Token::commandUnknown){
type = tk.subtype;
}
if (type == Token::specialArg) {
int df = int(type - Token::specialArg);
QString cmd = latexParser.mapSpecialArgs.value(df);
Expand Down

0 comments on commit 54192e9

Please sign in to comment.