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/qview.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/qview.cpp')
-rw-r--r--far2l/src/qview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/far2l/src/qview.cpp b/far2l/src/qview.cpp
index f0da0442..cd51fcb1 100644
--- a/far2l/src/qview.cpp
+++ b/far2l/src/qview.cpp
@@ -113,7 +113,7 @@ void QuickView::DisplayObject()
DrawSeparator(Y2-2);
SetColor(COL_PANELTEXT);
GotoXY(X1+1,Y2-1);
- FS<<fmt::LeftAlign()<<fmt::Width(X2-X1-1)<<fmt::Precision(X2-X1-1)<<PointToName(strCurFileName);
+ FS << fmt::Cells() << fmt::LeftAlign() << fmt::Size(X2 - X1 - 1) << PointToName(strCurFileName);
if (!strCurFileType.IsEmpty())
{
@@ -466,7 +466,7 @@ void QuickView::PrintText(const wchar_t *Str)
if (WhereY()>Y2-3 || WhereX()>X2-2)
return;
- FS<<fmt::Precision(X2-2-WhereX()+1)<<Str;
+ FS << fmt::Cells() << fmt::Truncate(X2 - 2 - WhereX() + 1) << Str;
}