Repository :
https://github.com/FarGroup/FarManager
On branch : master
Link :
https://github.com/FarGroup/FarManager/commit/291dadd1477a06b01d1b2a9ededd52ba56bcacbd
>---------------------------------------------------------------
commit 291dadd1477a06b01d1b2a9ededd52ba56bcacbd
Author: Shmuel Zeigerman <
solo...@gmail.com>
Date: Sat Sep 6 09:04:49 2025 +0300
LuaFAR: minor reformat in 3 files
>---------------------------------------------------------------
291dadd1477a06b01d1b2a9ededd52ba56bcacbd
plugins/luamacro/luafar/lf_luafar.h | 2 +-
plugins/luamacro/luafar/lf_service.c | 11 +++++++----
plugins/luamacro/luafar/lf_string.c | 10 +++++-----
3 files changed, 13 insertions(+), 10 deletions(-)
diff --git a/plugins/luamacro/luafar/lf_luafar.h b/plugins/luamacro/luafar/lf_luafar.h
index e21c47920..61d3988c1 100644
--- a/plugins/luamacro/luafar/lf_luafar.h
+++ b/plugins/luamacro/luafar/lf_luafar.h
@@ -144,7 +144,7 @@ DLLFUNC intptr_t LF_ProcessEditorInput(lua_State* L, const struct ProcessEditorI
DLLFUNC intptr_t LF_ProcessHostFile(lua_State* L, const struct ProcessHostFileInfo *Info);
DLLFUNC intptr_t LF_ProcessPanelEvent(lua_State* L, const struct ProcessPanelEventInfo *Info);
DLLFUNC intptr_t LF_ProcessPanelInput(lua_State* L, const struct ProcessPanelInputInfo *Info);
-DLLFUNC intptr_t LF_ProcessConsoleInput(lua_State* L, struct ProcessConsoleInputInfo *Info);
+DLLFUNC intptr_t LF_ProcessConsoleInput(lua_State* L, struct ProcessConsoleInputInfo *Info);
DLLFUNC intptr_t LF_ProcessSynchroEvent(lua_State* L, const struct ProcessSynchroEventInfo *Info);
DLLFUNC intptr_t LF_ProcessViewerEvent(lua_State* L, const struct ProcessViewerEventInfo *Info);
DLLFUNC intptr_t LF_PutFiles(lua_State* L, const struct PutFilesInfo *Info);
diff --git a/plugins/luamacro/luafar/lf_service.c b/plugins/luamacro/luafar/lf_service.c
index e553d07b3..b20f483a3 100644
--- a/plugins/luamacro/luafar/lf_service.c
+++ b/plugins/luamacro/luafar/lf_service.c
@@ -2412,11 +2412,14 @@ static int panel_SetPanelDirectory(lua_State *L)
if (id && len == sizeof(GUID)) fpd.PluginId = *id;
- lua_getfield(L, 3, "Name"); if (lua_isstring(L, -1)) fpd.Name = check_utf8_string(L, -1, NULL);
+ lua_getfield(L, 3, "Name");
+ if (lua_isstring(L, -1)) fpd.Name = check_utf8_string(L, -1, NULL);
- lua_getfield(L, 3, "Param"); if (lua_isstring(L, -1)) fpd.Param = check_utf8_string(L, -1, NULL);
+ lua_getfield(L, 3, "Param");
+ if (lua_isstring(L, -1)) fpd.Param = check_utf8_string(L, -1, NULL);
- lua_getfield(L, 3, "File"); if (lua_isstring(L, -1)) fpd.File = check_utf8_string(L, -1, NULL);
+ lua_getfield(L, 3, "File");
+ if (lua_isstring(L, -1)) fpd.File = check_utf8_string(L, -1, NULL);
}
else if (lua_isstring(L, 3))
fpd.Name = check_utf8_string(L, 3, NULL);
@@ -6784,7 +6787,7 @@ void LF_InitLuaState1(lua_State *L, lua_CFunction aOpenLibs)
lua_pushliteral(L, ""); //+3
lua_getmetatable(L, -1); //+4
lua_pushvalue(L, -4); //+5
- lua_setfield(L, -2, "__index"); //+4
+ lua_setfield(L, -2, "__index"); //+4
lua_pop(L, 4); //+0
// add utf8.reformat
(void) luaL_dostring(L, utf8_reformat);
diff --git a/plugins/luamacro/luafar/lf_string.c b/plugins/luamacro/luafar/lf_string.c
index 5008b2511..191d0f489 100644
--- a/plugins/luamacro/luafar/lf_string.c
+++ b/plugins/luamacro/luafar/lf_string.c
@@ -625,11 +625,11 @@ int ustring_SearchPath(lua_State *L)
wchar_t* lpFilePart;
DWORD result = SearchPathW(
lpPath, // address of search path
- lpFileName, // address of filename
- lpExtension, // address of extension
- sizeof(buf)/sizeof(wchar_t), // size, in characters, of buffer
- buf, // address of buffer for found filename
- &lpFilePart // address of pointer to file component
+ lpFileName, // address of filename
+ lpExtension, // address of extension
+ sizeof(buf)/sizeof(wchar_t), // size, in characters, of buffer
+ buf, // address of buffer for found filename
+ &lpFilePart // address of pointer to file component
);
if (result > 0)