diff --git a/src/core.h b/src/core.h index 2154768..5ecd74d 100644 --- a/src/core.h +++ b/src/core.h @@ -507,7 +507,7 @@ enum class EditTarget { Name, Type, Value, BaseAddress, Source, ArrayIndex, Arra inline constexpr int kFoldCol = 3; // 3-char fold indicator prefix per line inline constexpr int kColType = 14; // Max type column width (fits "uint64_t[999]") inline constexpr int kColName = 22; -inline constexpr int kColValue = 32; +inline constexpr int kColValue = 96; inline constexpr int kColComment = 28; // "// Enter=Save Esc=Cancel" fits inline constexpr int kColBaseAddr = 12; // "0x" + up to 10 hex digits (40-bit address) inline constexpr int kSepWidth = 1; diff --git a/src/format.cpp b/src/format.cpp index 0c32c0d..16be2b8 100644 --- a/src/format.cpp +++ b/src/format.cpp @@ -337,9 +337,9 @@ QString fmtNodeLine(const Node& node, const Provider& prov, QString cmtSuffix = comment.isEmpty() ? QString() : fit(comment, COL_COMMENT); - // Mat4x4: subLine 0..3 = rows + // Mat4x4: subLine 0..3 = rows — no truncation so large floats always display fully if (node.kind == NodeKind::Mat4x4) { - QString val = fit(readValue(node, prov, addr, subLine), COL_VALUE); + QString val = readValue(node, prov, addr, subLine); if (subLine == 0) return ind + type + SEP + name + SEP + val + cmtSuffix; return ind + QString(prefixW, ' ') + val + cmtSuffix; } diff --git a/tests/test_core.cpp b/tests/test_core.cpp index c956cf6..1d0eaa5 100644 --- a/tests/test_core.cpp +++ b/tests/test_core.cpp @@ -336,7 +336,7 @@ private slots: auto vs = rcx::valueSpanFor(lm, 100); QVERIFY(vs.valid); QCOMPARE(vs.start, 44); // 21 + 22 + 1 (kSepWidth) - QCOMPARE(vs.end, 76); // 44 + 32 (kColValue) + QCOMPARE(vs.end, 44 + rcx::kColValue); } void testColumnSpan_continuation() { @@ -352,7 +352,7 @@ private slots: auto vs = rcx::valueSpanFor(lm, 100); QVERIFY(vs.valid); QCOMPARE(vs.start, 6 + 14 + 22 + 2); // kFoldCol+indent + kColType(14) + kColName(22) + 2*kSepWidth - QCOMPARE(vs.end, 44 + 32); // start + kColValue + QCOMPARE(vs.end, 44 + rcx::kColValue); } void testColumnSpan_headerFooter() { @@ -392,7 +392,7 @@ private slots: auto vs = rcx::valueSpanFor(lm, 100); QVERIFY(vs.valid); QCOMPARE(vs.start, 41); // 18 + 22 + 1 (kSepWidth) - QCOMPARE(vs.end, 73); // 41 + 32 (kColValue) + QCOMPARE(vs.end, 41 + rcx::kColValue); // start + kColValue } void testNodeIdJsonRoundTrip() {