about summary refs log tree commit diff
path: root/contrib
diff options
context:
space:
mode:
authorVincent Breitmoser <look@my.amazin.horse>2018-08-22 12:12:37 +0200
committerLeah Neukirchen <leah@vuxu.org>2018-08-22 15:20:08 +0200
commit0b6080219b0237344e6702bc64a8cb09743befbc (patch)
treef72572fef9c242460ec0a88d9f00e2333dc78b7a /contrib
parent1288ade9edf222a1334b9d627b1f3cca401bd0d2 (diff)
downloadmblaze-0b6080219b0237344e6702bc64a8cb09743befbc.tar.gz
mblaze-0b6080219b0237344e6702bc64a8cb09743befbc.tar.xz
mblaze-0b6080219b0237344e6702bc64a8cb09743befbc.zip
contrib/_mblaze: fix _mblaze_message
This ignores lines from mseq | mscan that don't start with a sequence
number, i.e.  dangling messages in threads.

Closes: #124 [via git-merge-pr]
Diffstat (limited to 'contrib')
-rw-r--r--contrib/_mblaze1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/_mblaze b/contrib/_mblaze
index 43d880f..fb3c5d0 100644
--- a/contrib/_mblaze
+++ b/contrib/_mblaze
@@ -21,6 +21,7 @@ _mblaze_message() {
   fi
 
   mseq=( ${(f)"$(mscan -f '%3n %c%u%r %10d %17f %t %2i%s' : 2>/dev/null)"} )
+  mseq=( ${(M)mseq:# #<->*} )
   mseqnums=( ${(M)${mseq## #}##<->} )
   mseq=( ${mseq//:/\\:} )
   _describe -V -t mseq 'seq messages' mseq mseqnums && ret=0