┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels
diff options
context:
space:
mode:
authorHaozhe Jiang <[email protected]>2022-08-28 17:09:08 +0800
committerivan tkachenko <[email protected]>2022-11-23 17:46:00 +0000
commitdfe05c587beab876c0bf0718b84c7ed14bafde95 (patch)
treef55097ae8b30e82893e3caf052ec07b87faedd45 /src/panels
parent9811eb803e434e563756fb5a60947136afc8cd1f (diff)
Use \r to terminate command in integrated terminal
\r should be used instead of \n BUG: 458411
Diffstat (limited to 'src/panels')
-rw-r--r--src/panels/terminal/terminalpanel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/panels/terminal/terminalpanel.cpp b/src/panels/terminal/terminalpanel.cpp
index 22f840f5c..a9c61768b 100644
--- a/src/panels/terminal/terminalpanel.cpp
+++ b/src/panels/terminal/terminalpanel.cpp
@@ -251,10 +251,10 @@ void TerminalPanel::sendCdToTerminal(const QString& dir, HistoryPolicy addToHist
if (addToHistory == HistoryPolicy::AddToHistory)
m_sendCdToTerminalHistory.enqueue(QDir(dir).canonicalPath());
- m_terminal->sendInput(" cd " + KShell::quoteArg(dir) + '\n');
+ m_terminal->sendInput(" cd " + KShell::quoteArg(dir) + '\r');
if (m_clearTerminal) {
- m_terminal->sendInput(QStringLiteral(" clear\n"));
+ m_terminal->sendInput(QStringLiteral(" clear\r"));
m_clearTerminal = false;
}
}