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/Mounts.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/Mounts.cpp')
-rw-r--r--far2l/src/Mounts.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/far2l/src/Mounts.cpp b/far2l/src/Mounts.cpp
index f8c49ee8..febcb2b8 100644
--- a/far2l/src/Mounts.cpp
+++ b/far2l/src/Mounts.cpp
@@ -80,12 +80,12 @@ namespace Mounts
ConfigReader cfg_reader(HOTKEYS_SECTION);
for (auto &m : *this) {
- if (max_path < m.path.GetLength())
- max_path = m.path.GetLength();
- if (max_col3 < m.col3.GetLength())
- max_col3 = m.col3.GetLength();
- if (max_col2 < m.col2.GetLength())
- max_col2 = m.col2.GetLength();
+ if (max_path < m.path.CellsCount())
+ max_path = m.path.CellsCount();
+ if (max_col3 < m.col3.CellsCount())
+ max_col3 = m.col3.CellsCount();
+ if (max_col2 < m.col2.CellsCount())
+ max_col2 = m.col2.CellsCount();
wchar_t def_hk[] = {DefaultHotKey(m.id, m.path), 0};
auto hk = cfg_reader.GetString(SettingsKey(m.id), def_hk);
m.hotkey = hk.IsEmpty() ? 0 : *hk.CPtr();