Salome HOME
Task 2.7: Code completion and parameters creation (not finished)
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetExprEditor.cpp
index 5da885e1333d502f66d661a4eda3275dc316a790..b9099882564f192633f3a7e244af3347587748a7 100644 (file)
@@ -103,9 +103,7 @@ void ExpressionEditor::performCompletion()
   QTextCursor aCursor = textCursor();
   aCursor.select(QTextCursor::WordUnderCursor);
   const QString aPrefix = aCursor.selectedText();
-  if (!aPrefix.isEmpty() && aPrefix.at(aPrefix.length() - 1).isLetter()) {
-    performCompletion(aPrefix);
-  }
+  performCompletion(aPrefix);
 }
 
 void ExpressionEditor::performCompletion(const QString& theCompletionPrefix)