mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-02 06:09:51 +00:00
Assistant: Trim terminal command before displaying or running it
This commit is contained in:
parent
941087ee25
commit
35b930112f
Notes:
sideshowbarker
2024-07-18 08:44:26 +09:00
Author: https://github.com/luk1337
Commit: 35b930112f
Pull-request: https://github.com/SerenityOS/serenity/pull/8883
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ void TerminalProvider::query(String const& query, Function<void(NonnullRefPtrVec
|
|||
if (!query.starts_with('$'))
|
||||
return;
|
||||
|
||||
auto command = query.substring(1);
|
||||
auto command = query.substring(1).trim_whitespace();
|
||||
|
||||
NonnullRefPtrVector<Result> results;
|
||||
results.append(adopt_ref(*new TerminalResult(move(command))));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue