terminal: trim command when matching command for smart execution and when smart execu...
[idea/community.git] / plugins / terminal / src / org / jetbrains / plugins / terminal / ShellTerminalWidget.java
index 1ebd6076c22c32bf811e09427e82f43840ef32e1..bcb16702099f0d6e6c2b2370623ba9ef274a2252 100644 (file)
@@ -57,7 +57,7 @@ public class ShellTerminalWidget extends JBTerminalWidget {
 
       if (e.getKeyCode() == KeyEvent.VK_ENTER || TerminalShellCommandHandlerHelper.matchedExecutor(e) != null) {
         TerminalUsageTriggerCollector.Companion.triggerCommandExecuted(myProject);
-        if (myShellCommandHandlerHelper.processEnterKeyPressed(getTypedShellCommand(), e)) {
+        if (myShellCommandHandlerHelper.processEnterKeyPressed(e)) {
           e.consume();
         }
         if (!e.isConsumed()) {