diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-23 01:43:47 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-23 01:43:47 +0200 |
commit | 95bd63e7b0fd13f20642795dd4f15ff3556ec8f3 (patch) | |
tree | d013a04f70577a16f2ceb7da006f24ecedd1b606 /contrib | |
parent | 36b1dbd0d17656c546583cc0da1354bd04a7d66b (diff) | |
download | mblaze-95bd63e7b0fd13f20642795dd4f15ff3556ec8f3.tar.gz mblaze-95bd63e7b0fd13f20642795dd4f15ff3556ec8f3.tar.xz mblaze-95bd63e7b0fd13f20642795dd4f15ff3556ec8f3.zip |
mthr: don't try to print a parent for toplevel messages
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/mthr | 5 |
1 files 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 $@) |