[FarGroup/FarManager] master: Fix block undo in Editor (0701f4815)

0 views
Skip to first unread message

farg...@farmanager.com

unread,
Dec 26, 2025, 5:45:52 AM (yesterday) Dec 26
to farco...@googlegroups.com
Repository : https://github.com/FarGroup/FarManager
On branch : master
Link : https://github.com/FarGroup/FarManager/commit/0701f48155e4e6dcf939622c0b4592f2a43f5f38

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

commit 0701f48155e4e6dcf939622c0b4592f2a43f5f38
Author: Alex Alabuzhev <alab...@gmail.com>
Date: Fri Dec 26 10:41:22 2025 +0000

Fix block undo in Editor


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

0701f48155e4e6dcf939622c0b4592f2a43f5f38
far/editor.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/far/editor.cpp b/far/editor.cpp
index d36777a93..6c77bf33f 100644
--- a/far/editor.cpp
+++ b/far/editor.cpp
@@ -3755,7 +3755,7 @@ void Editor::DoSearchReplace(const SearchReplaceDisposition Disposition)
}
}

- if (IsReplaceAll)
+ if (IsReplaceAll && !UndoBlock)
UndoBlock.emplace(this);

if (MsgCode == message_result::first_button || MsgCode == message_result::second_button)


Reply all
Reply to author
Forward
0 new messages