summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/dtc/input_buffer.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/dtc/input_buffer.cc b/usr.bin/dtc/input_buffer.cc
index 10b3a00..8f055fe 100644
--- a/usr.bin/dtc/input_buffer.cc
+++ b/usr.bin/dtc/input_buffer.cc
@@ -216,7 +216,8 @@ input_buffer::parse_error(const char *msg)
putc('\n', stderr);
for (int i=0 ; i<(cursor-line_start) ; ++i)
{
- putc(' ', stderr);
+ char c = (buffer[i+line_start] == '\t') ? '\t' : ' ';
+ putc(c, stderr);
}
putc('^', stderr);
putc('\n', stderr);
OpenPOWER on IntegriCloud