From 95bd63e7b0fd13f20642795dd4f15ff3556ec8f3 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sat, 23 Jul 2016 01:43:47 +0200 Subject: [PATCH] mthr: don't try to print a parent for toplevel messages --- contrib/mthr | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/mthr b/contrib/mthr index 8dd01d6..2c4038c 100755 --- a/contrib/mthr +++ b/contrib/mthr @@ -33,8 +33,9 @@ mode==2 && ind <= dep { sel = 0 } } mode==2 && sel { print } mode==3 && sel { - print parents[ind-1] - sel = 0 + if (ind>0) + print parents[ind-1] + sel = 0 } mode==3 {parents[ind] = $0 } ' - $(mseq $@)