fix: console selects word on click. (#2372)

The problem was that the console was calling select word under cursor
when no selection was done. Fixed by removing the call.
This commit is contained in:
paxcut
2025-08-02 23:42:23 -07:00
committed by GitHub
parent b2f188fa4b
commit bc953592f0

View File

@@ -1006,8 +1006,6 @@ namespace hex::plugin::builtin {
RequestOpenPopup::post("hex.builtin.menu.edit");
m_consoleEditor.get(provider).ClearRaiseContextMenu();
}
if (!m_consoleEditor.get(provider).HasSelection())
m_consoleEditor.get(provider).SelectWordUnderCursor();
if (m_consoleCursorNeedsUpdate.get(provider)) {
m_consoleEditor.get(provider).SetFocusAtCoords(m_consoleCursorPosition.get(provider));