Skip to content

Commit

Permalink
luamacro:
Browse files Browse the repository at this point in the history
1. Adaptation to Far 3.0.6342.
  • Loading branch information
zg0 committed Jun 3, 2024
1 parent ba9067d commit 44b90a8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/luamacro/_globalinfo.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function export.GetGlobalInfo()
return {
Version = { 3, 0, 0, 839 },
Version = { 3, 0, 0, 840 },
MinFarVersion = { 3, 0, 0, 6327 },
Guid = win.Uuid("4EBBEFC8-2084-4B7F-94C0-692CE136894D"),
Title = "LuaMacro",
Expand Down
4 changes: 4 additions & 0 deletions plugins/luamacro/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
zg 2024-06-04 00:07:01+03:00 - build 840

1. Adaptation to Far 3.0.6342.

shmuel 2024-05-30 00:17:44+03:00 - build 839

1. Refactoring.
Expand Down
7 changes: 5 additions & 2 deletions plugins/luamacro/luafar/service.c
Original file line number Diff line number Diff line change
Expand Up @@ -3985,7 +3985,7 @@ intptr_t LF_DlgProc(lua_State *L, HANDLE hDlg, intptr_t Msg, intptr_t Param1, vo
PSInfo *Info = GetPluginData(L)->Info;
TDialogData *dd = (TDialogData*) Info->SendDlgMessage(hDlg,DM_GETDLGDATA,0,0);

if (Msg == DN_INITDIALOG && NonModal(dd))
if (Msg == DN_INITDIALOG && dd->hDlg == INVALID_HANDLE_VALUE)
{
dd->hDlg = hDlg;
}
Expand Down Expand Up @@ -4053,7 +4053,6 @@ static int far_DialogInit(lua_State *L)
// 8-th parameter (flags)
Flags = OptFlags(L, 8, 0);
dd = NewDialogData(L, pd->Info, INVALID_HANDLE_VALUE, TRUE);
dd->isModal = (Flags&FDLG_NONMODAL) == 0;
// 9-th parameter (DlgProc function)
Proc = NULL;
Param = NULL;
Expand Down Expand Up @@ -4092,6 +4091,10 @@ static int far_DialogInit(lua_State *L)
RemoveDialogFromRegistry(L, dd);
lua_pushnil(L);
}
else
{
dd->isModal = (Flags&FDLG_NONMODAL) == 0;
}

return 1;
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/luamacro/luafar/version.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#include <farversion.hpp>

#define PLUGIN_BUILD 839
#define PLUGIN_BUILD 840

0 comments on commit 44b90a8

Please sign in to comment.