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();