mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 10:01:13 +09:00
LibLine: Handle unicode correctly
This commit also fixes a problem with us throwing out data that was inserted while a command was running.
This commit is contained in:
parent
a4e0b585fe
commit
3bc3f36cfe
Notes:
sideshowbarker
2024-07-19 06:31:43 +09:00
Author: https://github.com/alimpfard
Commit: 3bc3f36cfe
Pull-request: https://github.com/SerenityOS/serenity/pull/2278
4 changed files with 90 additions and 29 deletions
|
@ -1389,7 +1389,7 @@ void Shell::highlight(Line::Editor&) const
|
|||
if (m_should_continue == ExitCodeOrContinuationRequest::SingleQuotedString) {
|
||||
builder.append('\'');
|
||||
}
|
||||
builder.append(StringView { editor.buffer().data(), editor.buffer().size() });
|
||||
builder.append(editor.line());
|
||||
auto commands = Parser { builder.string_view() }.parse();
|
||||
auto first_command { true };
|
||||
for (auto& command : commands) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue