Skip to content

Commit

Permalink
LuaFAR: fix actl.GetFarmanagerVersion(true) and rename to actl.GetFar…
Browse files Browse the repository at this point in the history
…ManagerVersion
  • Loading branch information
shmuz committed Oct 31, 2024
1 parent 63ac6f6 commit 4d65ed0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions enc/enc_lua/luafar_manual.tsi
Original file line number Diff line number Diff line change
Expand Up @@ -1888,7 +1888,7 @@ lv=3
dt=Text
nm=actl namespace
ctime=3917945155
mtime=3917945509
mtime=3939576259
<article>
#_This is an alternative interface to FAR's advanced control commands.
#_It is shorter and more expressive, e.g. the following 2 calls do the
Expand All @@ -1905,7 +1905,7 @@ mtime=3917945509
#_ GetColor ACTL_GETCOLOR
#_ GetCursorPos ACTL_GETCURSORPOS
#_ GetFarHwnd ACTL_GETFARHWND
#_ GetFarmanagerVersion ACTL_GETFARMANAGERVERSION
#_ GetFarManagerVersion ACTL_GETFARMANAGERVERSION
#_ GetFarRect ACTL_GETFARRECT
#_ GetWindowCount ACTL_GETWINDOWCOUNT
#_ GetWindowInfo ACTL_GETWINDOWINFO
Expand Down
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, 855 },
Version = { 3, 0, 0, 856 },
MinFarVersion = { 3, 0, 0, 6380 },
Guid = win.Uuid("4EBBEFC8-2084-4B7F-94C0-692CE136894D"),
Title = "LuaMacro",
Expand Down
6 changes: 6 additions & 0 deletions plugins/luamacro/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
shmuel 2024-10-31 22:45:33+02:00 - build 856

1. LuaFAR: fix actl.GetFarmanagerVersion(true)

2. LuaFAR: rename actl.GetFarmanagerVersion to actl.GetFarManagerVersion

shmuel 2024-10-28 21:17:03+02:00 - build 855

1. LuaFAR: viewer.Quit() returns a boolean (was: nothing).
Expand Down
6 changes: 3 additions & 3 deletions plugins/luamacro/luafar/service.c
Original file line number Diff line number Diff line change
Expand Up @@ -4907,7 +4907,7 @@ static int DoAdvControl (lua_State *L, int Command, int Delta)
struct VersionInfo vi;
Info->AdvControl(PluginId, Command, 0, &vi);

if (lua_toboolean(L, 2))
if (lua_toboolean(L, pos2))
{
lua_pushinteger(L, vi.Major);
lua_pushinteger(L, vi.Minor);
Expand Down Expand Up @@ -5065,7 +5065,7 @@ AdvCommand( GetArrayColor, ACTL_GETARRAYCOLOR)
AdvCommand( GetColor, ACTL_GETCOLOR)
AdvCommand( GetCursorPos, ACTL_GETCURSORPOS)
AdvCommand( GetFarHwnd, ACTL_GETFARHWND)
AdvCommand( GetFarmanagerVersion, ACTL_GETFARMANAGERVERSION)
AdvCommand( GetFarManagerVersion, ACTL_GETFARMANAGERVERSION)
AdvCommand( GetFarRect, ACTL_GETFARRECT)
AdvCommand( GetWindowCount, ACTL_GETWINDOWCOUNT)
AdvCommand( GetWindowInfo, ACTL_GETWINDOWINFO)
Expand Down Expand Up @@ -6372,7 +6372,7 @@ static const luaL_Reg actl_funcs[] =
PAIR( adv, GetColor),
PAIR( adv, GetCursorPos),
PAIR( adv, GetFarHwnd),
PAIR( adv, GetFarmanagerVersion),
PAIR( adv, GetFarManagerVersion),
PAIR( adv, GetFarRect),
PAIR( adv, GetWindowCount),
PAIR( adv, GetWindowInfo),
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 855
#define PLUGIN_BUILD 856

0 comments on commit 4d65ed0

Please sign in to comment.