[FarGroup/FarManager] master: Fix editor.sel(1, ...) in edit controls (65082be77)

0 views
Skip to first unread message

farg...@farmanager.com

unread,
Aug 31, 2025, 8:30:53 AM (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/65082be77f08abbb9bd47c45721ae1aa41a9a1a6

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

commit 65082be77f08abbb9bd47c45721ae1aa41a9a1a6
Author: Alex Alabuzhev <alab...@gmail.com>
Date: Sun Aug 31 13:15:46 2025 +0100

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


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

65082be77f08abbb9bd47c45721ae1aa41a9a1a6
far/changelog | 5 +++++
far/edit.cpp | 2 +-
far/vbuild.m4 | 2 +-
3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/far/changelog b/far/changelog
index 50be1e1d2..400f28b28 100644
--- a/far/changelog
+++ b/far/changelog
@@ -1,3 +1,8 @@
+--------------------------------------------------------------------------------
+drkns 2025-08-31 13:14:02+01:00 - build 6541
+
+1. Fix editor.sel(1, ...) in edit controls.
+
--------------------------------------------------------------------------------
drkns 2025-08-29 21:16:05+01:00 - build 6540

diff --git a/far/edit.cpp b/far/edit.cpp
index a414ad1be..49d2293bb 100644
--- a/far/edit.cpp
+++ b/far/edit.cpp
@@ -520,7 +520,7 @@ long long Edit::VMProcess(int OpCode, void* vParam, long long iParam)
case 0: // begin block (FirstLine & FirstPos)
case 1: // end block (LastLine & LastPos)
{
- SetTabCurPos(iParam?m_SelEnd:m_SelStart);
+ SetCurPos(iParam? m_SelEnd : m_SelStart);
Show();
return 1;
}
diff --git a/far/vbuild.m4 b/far/vbuild.m4
index 8bb727ee4..ddeb1aaec 100644
--- a/far/vbuild.m4
+++ b/far/vbuild.m4
@@ -1 +1 @@
-6540
+6541


Reply all
Reply to author
Forward
0 new messages