Fix assembly editor title
This commit is contained in:
@@ -13,13 +13,13 @@ AssemblyEditor::AssemblyEditor() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void AssemblyEditor::Update() {
|
void AssemblyEditor::Update() {
|
||||||
auto cpos = text_editor_.GetCursorPosition();
|
ImGui::Begin("Assembly Editor", &file_is_loaded_);
|
||||||
ImGui::Begin("ASM Editor", &file_is_loaded_, ImGuiWindowFlags_MenuBar);
|
|
||||||
MENU_BAR()
|
MENU_BAR()
|
||||||
DrawFileMenu();
|
DrawFileMenu();
|
||||||
DrawEditMenu();
|
DrawEditMenu();
|
||||||
END_MENU_BAR()
|
END_MENU_BAR()
|
||||||
|
|
||||||
|
auto cpos = text_editor_.GetCursorPosition();
|
||||||
SetEditorText();
|
SetEditorText();
|
||||||
ImGui::Text("%6d/%-6d %6d lines | %s | %s | %s | %s", cpos.mLine + 1,
|
ImGui::Text("%6d/%-6d %6d lines | %s | %s | %s | %s", cpos.mLine + 1,
|
||||||
cpos.mColumn + 1, text_editor_.GetTotalLines(),
|
cpos.mColumn + 1, text_editor_.GetTotalLines(),
|
||||||
@@ -28,7 +28,7 @@ void AssemblyEditor::Update() {
|
|||||||
text_editor_.GetLanguageDefinition().mName.c_str(),
|
text_editor_.GetLanguageDefinition().mName.c_str(),
|
||||||
current_file_.c_str());
|
current_file_.c_str());
|
||||||
|
|
||||||
text_editor_.Render(current_file_.c_str());
|
text_editor_.Render("##asm_editor");
|
||||||
ImGui::End();
|
ImGui::End();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user