[FarGroup/FarManager] master: gh-1034: Refresh plugin panel after uploading a changed file in ProcessEnter (36841eaaa)

0 views
Skip to first unread message

farg...@farmanager.com

unread,
Oct 25, 2025, 4:45:52 AM (yesterday) Oct 25
to farco...@googlegroups.com
Repository : https://github.com/FarGroup/FarManager
On branch : master
Link : https://github.com/FarGroup/FarManager/commit/36841eaaa8f804352c0073dec28d2855d775b20c

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

commit 36841eaaa8f804352c0073dec28d2855d775b20c
Author: ssvine <7940516...@users.noreply.github.com>
Date: Sat Oct 25 10:12:18 2025 +0300

gh-1034: Refresh plugin panel after uploading a changed file in ProcessEnter


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

36841eaaa8f804352c0073dec28d2855d775b20c
far/changelog | 5 +++++
far/filelist.cpp | 12 ++++++++++++
far/vbuild.m4 | 2 +-
3 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/far/changelog b/far/changelog
index 294291422..ae18d6ab5 100644
--- a/far/changelog
+++ b/far/changelog
@@ -1,3 +1,8 @@
+--------------------------------------------------------------------------------
+ssvine 2025-10-25 10:12:06+03:00 - build 6577
+
+1. gh-1034: Refresh plugin panel after uploading a changed file in ProcessEnter.
+
--------------------------------------------------------------------------------
shmuel 2025-10-24 20:22:16+03:00 - build 6576

diff --git a/far/filelist.cpp b/far/filelist.cpp
index 0c41c9553..e9df4d12b 100644
--- a/far/filelist.cpp
+++ b/far/filelist.cpp
@@ -2842,7 +2842,19 @@ void FileList::ProcessEnter(bool EnableExec,bool SeparateWindow,bool EnableAssoc
{
int PutCode = Global->CtrlObject->Plugins->PutFiles(GetPluginHandle(), { &PanelItem.Item, 1 }, false, OPM_EDIT);
if (PutCode == 1 || PutCode == 2)
+ {
SetPluginModified();
+
+ Update(UPDATE_KEEP_SELECTION);
+ Redraw();
+ const auto AnotherPanel = Parent()->GetAnotherPanel(this);
+
+ if (AnotherPanel->GetMode() == panel_mode::NORMAL_PANEL)
+ {
+ AnotherPanel->Update(UPDATE_KEEP_SELECTION);
+ AnotherPanel->Redraw();
+ }
+ }
}
}
}
diff --git a/far/vbuild.m4 b/far/vbuild.m4
index 88f43e582..3a5c1c66c 100644
--- a/far/vbuild.m4
+++ b/far/vbuild.m4
@@ -1 +1 @@
-6576
+6577


Reply all
Reply to author
Forward
0 new messages