Skip to content

Commit

Permalink
Correction of 5646.1
Browse files Browse the repository at this point in the history
  • Loading branch information
alabuzhev committed Dec 11, 2024
1 parent c330fd4 commit a5253a0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions far/changelog
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 5 additions & 1 deletion far/macroapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion far/vbuild.m4
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6400
6401

0 comments on commit a5253a0

Please sign in to comment.