Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/elfmz/far2l.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelfmz <fenix1905@tut.by>2022-11-05 20:31:53 +0300
committerGitHub <noreply@github.com>2022-11-05 20:31:53 +0300
commit253a6b140797e035eb9301a1632fed2408a837e2 (patch)
treeed6be316904b5d5ff11b7bfa46e7037fc2ec51d5 /far2l/src/usermenu.cpp
parent89eaed71c674aadda536408638e3416bc7f4c053 (diff)
support full-width/composite characters and true color palette in terminal (#1386)
Added normal support for full-width (CJK etc) and composite (using diacritics) characters. IMPORTANT: WINPORT API changed in binary incompatible way in order to implement this.
Diffstat (limited to 'far2l/src/usermenu.cpp')
-rw-r--r--far2l/src/usermenu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/far2l/src/usermenu.cpp b/far2l/src/usermenu.cpp
index 6c8302d2..a0efea1e 100644
--- a/far2l/src/usermenu.cpp
+++ b/far2l/src/usermenu.cpp
@@ -491,7 +491,7 @@ static int FillUserMenu(VMenu& UserMenu,const wchar_t *MenuKey,int MenuPos,int *
FuncNum=PrepareHotKey(strHotKey);
int Offset=strHotKey.At(0)==L'&'?5:4;
FormatString FString;
- FString<<((!strHotKey.IsEmpty() && !FuncNum)?L"&":L"")<<fmt::LeftAlign()<<fmt::Width(Offset)<<fmt::Precision(Offset)<<strHotKey;
+ FString<<((!strHotKey.IsEmpty() && !FuncNum)?L"&":L"")<<fmt::LeftAlign()<<fmt::Size(Offset)<<strHotKey;
UserMenuItem.strName=std::move(FString.strValue());
UserMenuItem.strName+=strLabel;