[FarGroup/FarManager] master: gh-1006: `VMenu`: Do not clear annotations if nobody asked for it. (9561d0497)

0 views
Skip to first unread message

farg...@farmanager.com

unread,
Sep 20, 2025, 7:45:48 AM (12 days ago) Sep 20
to farco...@googlegroups.com
Repository : https://github.com/FarGroup/FarManager
On branch : master
Link : https://github.com/FarGroup/FarManager/commit/9561d04970293678b3643864c4454352214a885c

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

commit 9561d04970293678b3643864c4454352214a885c
Author: Michael Z. Kadaner <MKad...@users.noreply.github.com>
Date: Fri Sep 19 20:56:34 2025 -0400

gh-1006: `VMenu`: Do not clear annotations if nobody asked for it.


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

9561d04970293678b3643864c4454352214a885c
far/changelog | 5 +++++
far/vbuild.m4 | 2 +-
far/vmenu.cpp | 2 +-
3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/far/changelog b/far/changelog
index 648add52b..684d47f35 100644
--- a/far/changelog
+++ b/far/changelog
@@ -1,3 +1,8 @@
+--------------------------------------------------------------------------------
+MZK 2025-09-19 20:55:44-04:00 - build 6559
+
+1. gh-1006: `VMenu`: Do not clear annotations if nobody asked for it.
+
--------------------------------------------------------------------------------
rohitab 2025-09-19 08:58:11+10:00 - build 6558

diff --git a/far/vbuild.m4 b/far/vbuild.m4
index 60262f8d2..e561a75d7 100644
--- a/far/vbuild.m4
+++ b/far/vbuild.m4
@@ -1 +1 @@
-6558
+6559
diff --git a/far/vmenu.cpp b/far/vmenu.cpp
index 9245637f6..1ed2b9c25 100644
--- a/far/vmenu.cpp
+++ b/far/vmenu.cpp
@@ -988,8 +988,8 @@ bool VMenu::UpdateItem(const FarListUpdate *NewItem)
if (NewItem->Item.Flags&LIF_DELETEUSERDATA)
{
Item.ComplexUserData = {};
+ Item.Annotations.clear();
}
- Item.Annotations.clear();

Item.Name = NullToEmpty(NewItem->Item.Text);
UpdateItemFlags(NewItem->Index, NewItem->Item.Flags);


Reply all
Reply to author
Forward
0 new messages