From 0b6080219b0237344e6702bc64a8cb09743befbc Mon Sep 17 00:00:00 2001 From: Vincent Breitmoser Date: Wed, 22 Aug 2018 12:12:37 +0200 Subject: 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] --- contrib/_mblaze | 1 + 1 file changed, 1 insertion(+) (limited to 'contrib') 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 -- cgit 1.4.1