1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-08 20:27:35 +00: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

View file

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