aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/print.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libexpr/print.cc')
-rw-r--r--src/libexpr/print.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libexpr/print.cc b/src/libexpr/print.cc
index e5e6b9b21..8d7e2ab34 100644
--- a/src/libexpr/print.cc
+++ b/src/libexpr/print.cc
@@ -198,12 +198,14 @@ private:
void printString(Value & v)
{
- // NB: Non-printing characters won't be escaped.
escapeString(
output,
v.string.s,
- options.maxStringLength,
- options.ansiColors
+ {
+ .maxLength = options.maxStringLength,
+ .outputAnsiColors = options.ansiColors,
+ // NB: Non-printing characters won't be escaped.
+ }
);
}