summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sort.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sort.c b/src/sort.c
index cf29727de..37b3b8b8f 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -2274,7 +2274,8 @@ debug_key (struct line const *line, struct keyfield const *key)
if (key->eword != SIZE_MAX)
lim = limfield (line, key);
- if (key->skipsblanks || key->month || key_numeric (key))
+ if ((key->skipsblanks && key->sword == SIZE_MAX)
+ || key->month || key_numeric (key))
{
char saved = *lim;
*lim = '\0';