1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 02:13:56 +09:00

HackStudio: Reset the cursor to I-beam when switching between files

This commit is contained in:
Andreas Kling 2020-10-26 16:43:28 +01:00
parent 0bc740ab7f
commit 709b3ccb0a
Notes: sideshowbarker 2024-07-19 01:42:17 +09:00

View file

@ -470,6 +470,8 @@ void Editor::set_document(GUI::TextDocument& doc)
ASSERT(doc.is_code_document());
GUI::TextEditor::set_document(doc);
set_override_cursor(Gfx::StandardCursor::IBeam);
CodeDocument& code_document = static_cast<CodeDocument&>(doc);
switch (code_document.language()) {
case Language::Cpp: