Skip to content

Commit

Permalink
LuaFAR: touch FarGroup#865
Browse files Browse the repository at this point in the history
Disable calling Lua handler of ProcessConsoleInput while error message is displayed.
  • Loading branch information
shmuz committed Aug 17, 2024
1 parent 291353e commit e13c21a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 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, 846 },
Version = { 3, 0, 0, 847 },
MinFarVersion = { 3, 0, 0, 6327 },
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-08-17 10:06:48+03:00 - build 847

1. LuaFAR:
Disable calling Lua handler of ProcessConsoleInput while error message is displayed.
See also: Mantis #3035, builds 523 and 605, Github #865.

shmuel 2024-07-13 15:19:38+03:00 - build 846

1. A small fix.
Expand Down
3 changes: 2 additions & 1 deletion plugins/luamacro/luafar/exported.c
Original file line number Diff line number Diff line change
Expand Up @@ -1707,7 +1707,8 @@ intptr_t LF_ProcessConsoleInput(lua_State* L, struct ProcessConsoleInputInfo *In
{
intptr_t ret = 0;

if (GetExportFunction(L, "ProcessConsoleInput")) //+1: Func
if (!(GetPluginData(L)->Flags & PDF_PROCESSINGERROR) &&
GetExportFunction(L, "ProcessConsoleInput")) //+1: Func
{
PushInputRecord(L, &Info->Rec); //+2
bit64_push(L, Info->Flags); //+3
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 846
#define PLUGIN_BUILD 847

0 comments on commit e13c21a

Please sign in to comment.