[FarGroup/FarManager] master: Fix mouse handling in command line (760633efe)

0 views
Skip to first unread message

farg...@farmanager.com

unread,
Mar 20, 2026, 6:00:57 PM (7 days ago) Mar 20
to farco...@googlegroups.com
Repository : https://github.com/FarGroup/FarManager
On branch : master
Link : https://github.com/FarGroup/FarManager/commit/760633efeaa8c5729bfc16509b4b188b936c3723

>---------------------------------------------------------------

commit 760633efeaa8c5729bfc16509b4b188b936c3723
Author: Alex Alabuzhev <alab...@gmail.com>
Date: Fri Mar 20 21:55:54 2026 +0000

Fix mouse handling in command line


>---------------------------------------------------------------

760633efeaa8c5729bfc16509b4b188b936c3723
far/cmdline.cpp | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/far/cmdline.cpp b/far/cmdline.cpp
index 7b96690c9..38241f0b4 100644
--- a/far/cmdline.cpp
+++ b/far/cmdline.cpp
@@ -634,7 +634,11 @@ void CommandLine::InsertString(string_view const Str)

bool CommandLine::ProcessMouse(const MOUSE_EVENT_RECORD *MouseEvent)
{
- if (MouseEvent->dwButtonState&FROM_LEFT_1ST_BUTTON_PRESSED && MouseEvent->dwMousePosition.X == m_Where.right + 1)
+ if (
+ MouseEvent->dwButtonState & FROM_LEFT_1ST_BUTTON_PRESSED &&
+ MouseEvent->dwMousePosition.X == m_Where.right + 1 &&
+ in_closed_range(m_Where.top, MouseEvent->dwMousePosition.Y, m_Where.bottom)
+ )
{
return ProcessKey(Manager::Key(KEY_ALTF8));
}


Reply all
Reply to author
Forward
0 new messages