[FarGroup/FarManager] master: Fix editor.sel(...) in edit controls (c5d9b129b)

0 views
Skip to first unread message

farg...@farmanager.com

unread,
Aug 31, 2025, 1:15:59 PM (7 days ago) Aug 31
to farco...@googlegroups.com
Repository : https://github.com/FarGroup/FarManager
On branch : master
Link : https://github.com/FarGroup/FarManager/commit/c5d9b129bde4f46ad10f7c449b6a14c480d222be

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

commit c5d9b129bde4f46ad10f7c449b6a14c480d222be
Author: Alex Alabuzhev <alab...@gmail.com>
Date: Sun Aug 31 17:48:04 2025 +0100

Fix editor.sel(...) in edit controls


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

c5d9b129bde4f46ad10f7c449b6a14c480d222be
far/edit.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/far/edit.cpp b/far/edit.cpp
index 49d2293bb..54d3b14a5 100644
--- a/far/edit.cpp
+++ b/far/edit.cpp
@@ -536,15 +536,15 @@ long long Edit::VMProcess(int OpCode, void* vParam, long long iParam)
{
case 0: // selection start
{
- SetMacroSelectionStart(GetTabCurPos());
+ SetMacroSelectionStart(GetCurPos());
return 1;
}
case 1: // selection finish
{
if (GetMacroSelectionStart() != -1)
{
- if (GetMacroSelectionStart() != GetTabCurPos())
- Select(GetMacroSelectionStart(),GetTabCurPos());
+ if (GetMacroSelectionStart() != GetCurPos())
+ Select(GetMacroSelectionStart(),GetCurPos());
else
RemoveSelection();



Reply all
Reply to author
Forward
0 new messages