From 7c2782d09f05d0700ca0e3cee5ba3d68a9a41020 Mon Sep 17 00:00:00 2001 From: Jan Sundermeyer Date: Sat, 4 Nov 2023 19:03:46 +0100 Subject: [PATCH] filter out specialDef from usercommands for completer --- src/latexdocument.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/latexdocument.cpp b/src/latexdocument.cpp index 67bed62664..2a08954bc6 100644 --- a/src/latexdocument.cpp +++ b/src/latexdocument.cpp @@ -1906,6 +1906,7 @@ QList LatexDocument::userCommandList() const { QList csl; foreach (UserCommandPair cmd, mUserCommandList) { + if(cmd.name.isEmpty()) continue; // filter out special def csl.append(cmd.snippet); } std::sort(csl.begin(),csl.end());