Repository :
https://github.com/FarGroup/FarManager
On branch : master
Link :
https://github.com/FarGroup/FarManager/commit/c29820082f025e9e1c38dd4b4e8a49970183fcd4
>---------------------------------------------------------------
commit c29820082f025e9e1c38dd4b4e8a49970183fcd4
Author: Vadim Yegorov <
z...@bmg.lv>
Date: Sun Oct 5 23:13:13 2025 +0300
1. selection drawn incorrectly in viewer in dump mode.
>---------------------------------------------------------------
c29820082f025e9e1c38dd4b4e8a49970183fcd4
far/changelog | 5 +++++
far/vbuild.m4 | 2 +-
far/viewer.cpp | 2 +-
3 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/far/changelog b/far/changelog
index 5ceb9f784..d0ce1fcdc 100644
--- a/far/changelog
+++ b/far/changelog
@@ -1,3 +1,8 @@
+--------------------------------------------------------------------------------
+zg 2025-10-05 23:11:22+03:00 - build 6571
+
+1. selection drawn incorrectly in viewer in dump mode.
+
--------------------------------------------------------------------------------
drkns 2025-10-04 21:05:17+01:00 - build 6570
diff --git a/far/vbuild.m4 b/far/vbuild.m4
index 55f59784d..26d97f396 100644
--- a/far/vbuild.m4
+++ b/far/vbuild.m4
@@ -1 +1 @@
-6570
+6571
diff --git a/far/viewer.cpp b/far/viewer.cpp
index a5f738d6d..2b532972f 100644
--- a/far/viewer.cpp
+++ b/far/viewer.cpp
@@ -966,7 +966,7 @@ void Viewer::ShowDump()
const int bsel = SelectPos > bpos? static_cast<int>(SelectPos - bpos) / CharSize : 0;
const int esel = SelectPos + SelectSize < bpos + mb? (static_cast<int>(SelectPos + SelectSize - bpos) + CharSize - 1) / CharSize : ScrollbarAdjustedWidth;
SetColor(COL_VIEWERSELECTEDTEXT);
- GotoXY(bsel, Y);
+ GotoXY(m_Where.left + bsel, Y);
Text(cut_right(OutStr.substr(bsel), esel - bsel));
}
}