Skip to content

Commit

Permalink
Allow to break directory scan started from a macro (Mantis#0002692).
Browse files Browse the repository at this point in the history
Fix by Shmuel: shmuz/far2m#36
  • Loading branch information
johnd0e committed Jun 17, 2023
1 parent 0b3d91d commit 7050380
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions far/changelog
@@ -1,3 +1,9 @@
--------------------------------------------------------------------------------
johnd0e 2023-06-17 14:55:00+01:00 - build 6165

1. Allow to break directory scan started from a macro (Mantis#0002692).
Fix by Shmuel: https://github.com/shmuz/far2m/issues/36

--------------------------------------------------------------------------------
drkns 2023-06-14 20:01:09+01:00 - build 6164

Expand Down
7 changes: 5 additions & 2 deletions far/dirinfo.cpp
Expand Up @@ -111,10 +111,13 @@ int GetDirInfo(string_view const DirName, DirInfoData& Data, multifilter* Filter
// Временные хранилища имён каталогов
string strLastDirName;
os::fs::find_data FindData;

// Mantis#0002692
Global->CtrlObject->Macro.SuspendMacros(true);
SCOPE_EXIT{ Global->CtrlObject->Macro.SuspendMacros(false); };

while (ScTree.GetNextName(FindData,strFullName))
{
// Mantis#0002692
if (!Global->CtrlObject->Macro.IsExecuting())
{
INPUT_RECORD rec;

Expand Down
2 changes: 1 addition & 1 deletion far/vbuild.m4
@@ -1 +1 @@
6164
6165

0 comments on commit 7050380

Please sign in to comment.