Skip to content

Commit 44cfad9

Browse files
committed
implement #4217
1 parent 5cc2baf commit 44cfad9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/latexcompleter.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,12 +881,15 @@ void CompletionListModel::setKeyValWords(const QString &name, const QSet<QString
881881
if (str.contains("#") && !str.startsWith("#")) {
882882
int j = str.indexOf("#");
883883
validValues = str.mid(j + 1);
884-
str = str.left(j);
884+
str = str.left(j);
885885
QStringList lst = validValues.split(",");
886886
QString key = str;
887887
if (key.endsWith("="))
888888
key.chop(1);
889889
setKeyValWords(name + "/" + key, convertStringListtoSet(lst));
890+
if(validValues=="#L"){
891+
str+="%<dimension%>"; // add dimension placeholder
892+
}
890893
}
891894
CompletionWord cw(str, false);
892895
cw.index = 0;

0 commit comments

Comments
 (0)