Skip to content

Commit

Permalink
Fix 5199
Browse files Browse the repository at this point in the history
  • Loading branch information
alabuzhev committed Oct 26, 2023
1 parent aa19cce commit 20877a7
Show file tree
Hide file tree
Showing 3 changed files with 7 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 2023-10-26 18:32:38+01:00 - build 6205

1. Fix 5199.

--------------------------------------------------------------------------------
drkns 2023-10-13 22:09:02+01:00 - build 6204

Expand Down
2 changes: 1 addition & 1 deletion far/copy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ ShellCopy::ShellCopy(
const auto SpaceAvailable = std::max(0, static_cast<int>(CopyDlg[ID_SC_TITLE].X2 - CopyDlg[ID_SC_TITLE].X1 - 1 - 1));
if (const auto MaxLength = std::max(0, SpaceAvailable - static_cast<int>(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);

Expand Down
2 changes: 1 addition & 1 deletion far/vbuild.m4
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6204
6205

0 comments on commit 20877a7

Please sign in to comment.