mirror of
https://github.com/RGBCube/serenity
synced 2025-07-08 22:47:34 +00:00
HackStudio: Reset the cursor to I-beam when switching between files
This commit is contained in:
parent
0bc740ab7f
commit
709b3ccb0a
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue