diff --git a/far/changelog b/far/changelog index c55190bbb6..1f82154970 100644 --- a/far/changelog +++ b/far/changelog @@ -1,3 +1,8 @@ +-------------------------------------------------------------------------------- +drkns 2023-10-26 18:32:38+01:00 - build 6205 + +1. Fix 5199. + -------------------------------------------------------------------------------- drkns 2023-10-13 22:09:02+01:00 - build 6204 diff --git a/far/copy.cpp b/far/copy.cpp index ac8f4e5e37..66b7506ac5 100644 --- a/far/copy.cpp +++ b/far/copy.cpp @@ -765,7 +765,7 @@ ShellCopy::ShellCopy( const auto SpaceAvailable = std::max(0, static_cast(CopyDlg[ID_SC_TITLE].X2 - CopyDlg[ID_SC_TITLE].X1 - 1 - 1)); if (const auto MaxLength = std::max(0, SpaceAvailable - static_cast(HiStrlen(far::vformat(Format, L""sv, ToOrIn))))) { - strCopyStr = truncate_right(SingleSelName, MaxLength); + strCopyStr = escape_ampersands(truncate_right(SingleSelName, MaxLength)); } strCopyStr = far::vformat(Format, strCopyStr, ToOrIn); diff --git a/far/vbuild.m4 b/far/vbuild.m4 index 14e5d050f7..255d828b96 100644 --- a/far/vbuild.m4 +++ b/far/vbuild.m4 @@ -1 +1 @@ -6204 +6205