Repository :
https://github.com/FarGroup/FarManager
On branch : master
Link :
https://github.com/FarGroup/FarManager/commit/f9b4f4c33b675d7e25bdcd107c776de778fe4282
>---------------------------------------------------------------
commit f9b4f4c33b675d7e25bdcd107c776de778fe4282
Author: Alex Alabuzhev <
alab...@gmail.com>
Date: Thu Oct 16 23:43:34 2025 +0100
Continue gh-1031
Save the history if the user touched the control or if the control is visible
>---------------------------------------------------------------
f9b4f4c33b675d7e25bdcd107c776de778fe4282
far/changelog | 6 ++++++
far/dialog.cpp | 2 +-
far/vbuild.m4 | 2 +-
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/far/changelog b/far/changelog
index 71a724937..de613068f 100644
--- a/far/changelog
+++ b/far/changelog
@@ -1,3 +1,9 @@
+--------------------------------------------------------------------------------
+drkns 2025-10-16 23:42:46+01:00 - build 6573
+
+1. Continue gh-1031.
+ Save the history if the user touched the control or if the control is visible.
+
--------------------------------------------------------------------------------
drkns 2025-10-16 20:22:16+01:00 - build 6572
diff --git a/far/dialog.cpp b/far/dialog.cpp
index a87b06743..253b65eb7 100644
--- a/far/dialog.cpp
+++ b/far/dialog.cpp
@@ -4196,7 +4196,7 @@ intptr_t Dialog::CloseDialog()
{
if (i.Flags & DIF_HISTORY && !(i.Flags & DIF_MANUALADDHISTORY) && !i.strHistory.empty() && IsEdit(i.Type))
{
- if (const auto EditPtr = static_cast<const DlgEdit*>(i.ObjPtr); EditPtr && !EditPtr->GetClearFlag())
+ if (const auto EditPtr = static_cast<const DlgEdit*>(i.ObjPtr); EditPtr && (!(i.Flags & DIF_HIDDEN) || !EditPtr->GetClearFlag()))
AddToEditHistory(i, i.strData);
}
}
diff --git a/far/vbuild.m4 b/far/vbuild.m4
index 547a01a89..4dcb373bc 100644
--- a/far/vbuild.m4
+++ b/far/vbuild.m4
@@ -1 +1 @@
-6572
+6573