Index: addons/konsole/kateconsole.cpp =================================================================== --- addons/konsole/kateconsole.cpp +++ addons/konsole/kateconsole.cpp @@ -260,6 +260,8 @@ if (!t) return; + // Send prior Ctrl-U to ensure the line is empty + t->sendInput (QStringLiteral("\x15")); t->sendInput (text); }