Repository :
https://github.com/FarGroup/FarManager
On branch : master
Link :
https://github.com/FarGroup/FarManager/commit/b8bf5323c62ae426fe025891ac8413fdbff5858b
>---------------------------------------------------------------
commit b8bf5323c62ae426fe025891ac8413fdbff5858b
Author: BitoLabs <
zer...@users.noreply.github.com>
Date: Sat Sep 26 19:04:43 2026 +0100
gh-1133: Fix Panel::ExecFolder() to ensure correct behavior for SameFolder plugin
* When passive panel is in non-file mode (Info, etc), SameFolder had no effect
* When passive panel is hidden (Ctrl+F1/F2), SameFolder did not un-hide it
>---------------------------------------------------------------
b8bf5323c62ae426fe025891ac8413fdbff5858b
far/changelog | 8 ++++++++
far/panel.cpp | 5 +++++
far/vbuild.m4 | 2 +-
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/far/changelog b/far/changelog
index b5bd0b0a8..d40f4522f 100644
--- a/far/changelog
+++ b/far/changelog
@@ -1,3 +1,11 @@
+--------------------------------------------------------------------------------
+BitoLabs 2026-09-26 19:58:45+01:00 - build 6740
+
+1. gh-1133: Fix Panel::ExecFolder() to ensure correct behavior for SameFolder plugin
+
+ * When passive panel is in non-file mode (Info, etc), SameFolder had no effect
+ * When passive panel is hidden (Ctrl+F1/F2), SameFolder did not un-hide it
+
--------------------------------------------------------------------------------
drkns 2026-09-25 18:58:09+01:00 - build 6739
diff --git a/far/panel.cpp b/far/panel.cpp
index 075aa4f25..f8957c693 100644
--- a/far/panel.cpp
+++ b/far/panel.cpp
@@ -1071,9 +1071,14 @@ bool Panel::ExecFolder(string_view const Folder, const UUID& PluginUuid, const s
if (ProcessPluginEvent(FE_CLOSE, nullptr))
return false;
+ if (SrcPanel->GetType() != panel_type::FILE_PANEL)
+ SrcPanel = Parent()->ChangePanel(SrcPanel, panel_type::FILE_PANEL, TRUE, TRUE);
+
if (!SrcPanel->SetCurDir(Folder, true, true, Silent))
return false;
+ SrcPanel->Show();
+
if (CheckFullScreen!=SrcPanel->IsFullScreen())
Parent()->GetAnotherPanel(SrcPanel)->Show();
diff --git a/far/vbuild.m4 b/far/vbuild.m4
index 021d784d3..fed24da50 100644
--- a/far/vbuild.m4
+++ b/far/vbuild.m4
@@ -1 +1 @@
-6739
+6740