summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sort.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/sort.c b/src/sort.c
index 588bae80f..f552d219f 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -2162,14 +2162,17 @@ count_tabs (char const *text, size_t len)
static void
mark_key (size_t offset, size_t width)
{
- printf ("%*s", (int) offset, "");
+ while (offset--)
+ putchar (' ');
if (!width)
printf (_("^ no match for key\n"));
else
{
- while (width--)
+ do
putchar ('_');
+ while (--width);
+
putchar ('\n');
}
}