1
0
mirror of synced 2025-01-11 05:42:15 +01:00

impr: Made pattern editor resize separator taller

This commit is contained in:
WerWolv 2024-12-23 20:15:50 +01:00
parent 20cb74364f
commit a29b502a33

View File

@ -419,7 +419,7 @@ namespace hex::plugin::builtin {
setupGotoLine(editor); setupGotoLine(editor);
} }
ImGui::Button("##settings_drag_bar", ImVec2(ImGui::GetContentRegionAvail().x, 2_scaled)); ImGui::Button("##settings_drag_bar", ImVec2(ImGui::GetContentRegionAvail().x, 4_scaled));
if (ImGui::IsMouseDragging(ImGuiMouseButton_Left, 0)) { if (ImGui::IsMouseDragging(ImGuiMouseButton_Left, 0)) {
if (ImGui::IsItemHovered()) if (ImGui::IsItemHovered())
dragging = true; dragging = true;
@ -1032,8 +1032,7 @@ namespace hex::plugin::builtin {
ImGui::OpenPopup("##console_context_menu"); ImGui::OpenPopup("##console_context_menu");
m_consoleEditor.ClearRaiseContextMenu(); m_consoleEditor.ClearRaiseContextMenu();
} }
if (!m_consoleEditor.HasSelection())
m_consoleEditor.SelectWordUnderCursor();
const bool hasSelection = m_consoleEditor.HasSelection(); const bool hasSelection = m_consoleEditor.HasSelection();
if (ImGui::BeginPopup("##console_context_menu")) { if (ImGui::BeginPopup("##console_context_menu")) {
if (ImGui::MenuItem("hex.builtin.view.hex_editor.menu.edit.copy"_lang, Shortcut(CTRLCMD + Keys::C).toString().c_str(), false, hasSelection)) { if (ImGui::MenuItem("hex.builtin.view.hex_editor.menu.edit.copy"_lang, Shortcut(CTRLCMD + Keys::C).toString().c_str(), false, hasSelection)) {