From a5253a0e0dc410f800a2547b93d23839ef9fd633 Mon Sep 17 00:00:00 2001 From: Alex Alabuzhev Date: Wed, 11 Dec 2024 20:43:49 +0000 Subject: [PATCH] Correction of 5646.1 --- far/changelog | 5 +++++ far/macroapi.cpp | 6 +++++- far/vbuild.m4 | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/far/changelog b/far/changelog index 61583b78bf..88b2d4e06b 100644 --- a/far/changelog +++ b/far/changelog @@ -1,3 +1,8 @@ +-------------------------------------------------------------------------------- +drkns 2024-12-11 20:43:27+00:00 - build 6401 + +1. Correction of 5646.1. + -------------------------------------------------------------------------------- drkns 2024-12-11 19:02:47+00:00 - build 6400 diff --git a/far/macroapi.cpp b/far/macroapi.cpp index 657d3ad4f7..b30d3afc89 100644 --- a/far/macroapi.cpp +++ b/far/macroapi.cpp @@ -1018,7 +1018,11 @@ void KeyMacro::CallFar(intptr_t CheckCode, FarMacroCall* Data) clipboard_mode::internal: clipboard_mode::system); break; case IMP_KEYNAMETOKEY: - if (Data->Count > 1) api.PassValue(KeyNameToKey(Data->Values[1].String)); + if (Data->Count > 1) + { + const auto Key = KeyNameToKey(Data->Values[1].String); + api.PassValue(Key? Key : -1); + } break; case IMP_KEYTOTEXT: if (Data->Count > 1) diff --git a/far/vbuild.m4 b/far/vbuild.m4 index 5919dcef3a..b25aecf8c4 100644 --- a/far/vbuild.m4 +++ b/far/vbuild.m4 @@ -1 +1 @@ -6400 +6401