[FarGroup/FarManager] master: Correction of 6671.4 (M#0004110) (e54f87431)

0 views
Skip to first unread message

farg...@farmanager.com

unread,
Jun 29, 2026, 6:45:53 PM (8 days ago) Jun 29
to farco...@googlegroups.com
Repository : https://github.com/FarGroup/FarManager
On branch : master
Link : https://github.com/FarGroup/FarManager/commit/e54f874312c0d1292189b2f51307e4d962fd38a1

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

commit e54f874312c0d1292189b2f51307e4d962fd38a1
Author: Alex Alabuzhev <alab...@gmail.com>
Date: Mon Jun 29 23:33:41 2026 +0100

Correction of 6671.4 (M#0004110)


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

e54f874312c0d1292189b2f51307e4d962fd38a1
far/changelog | 5 +++++
far/vbuild.m4 | 2 +-
far/viewer.cpp | 1 +
far/viewer.hpp | 2 +-
4 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/far/changelog b/far/changelog
index 33b14f22e..a19842ea5 100644
--- a/far/changelog
+++ b/far/changelog
@@ -1,3 +1,8 @@
+--------------------------------------------------------------------------------
+drkns 2026-06-29 23:32:48+01:00 - build 6708
+
+1. Correction of 6671.4 (M#0004110).
+
--------------------------------------------------------------------------------
drkns 2026-06-29 22:51:32+01:00 - build 6707

diff --git a/far/vbuild.m4 b/far/vbuild.m4
index 2f6aae031..b0ddb5802 100644
--- a/far/vbuild.m4
+++ b/far/vbuild.m4
@@ -1 +1 @@
-6707
+6708
diff --git a/far/viewer.cpp b/far/viewer.cpp
index 0b5c0a476..2b7cfa1b3 100644
--- a/far/viewer.cpp
+++ b/far/viewer.cpp
@@ -622,6 +622,7 @@ bool Viewer::CheckChanged()

const auto Shrunk = NewViewFindData.FileSize < ViewFindData.FileSize;
ViewFindData = NewViewFindData;
+ FileSize = static_cast<long long>(ViewFindData.FileSize);

if (Shrunk) // do not reset caches if file just enlarged [make sense on Win7, doesn't matter on XP]
{
diff --git a/far/viewer.hpp b/far/viewer.hpp
index 745fcfaa4..e85d9a89d 100644
--- a/far/viewer.hpp
+++ b/far/viewer.hpp
@@ -217,7 +217,7 @@ private:

long long FilePos{};
long long SecondPos{};
- long long FileSize{};
+ long long FileSize{}; // BUGBUG REMOVE THIS
long long LastSelectPos{}, LastSelectSize{-1};

long long LeftPos{}; // Left viewport edge relative to left content edge; must be non-negative


Reply all
Reply to author
Forward
0 new messages