Github messages for mblaze
 help / color / mirror / Atom feed
* [PR PATCH] contrib/_mblaze: silence mseq errors
@ 2020-10-10 13:25 JNRowe
  2020-10-10 18:48 ` [PR PATCH] [Closed]: " leahneukirchen
  0 siblings, 1 reply; 2+ messages in thread
From: JNRowe @ 2020-10-10 13:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 431 bytes --]

There is a new pull request by JNRowe against master on the mblaze repository

https://github.com/JNRowe/mblaze master
https://github.com/leahneukirchen/mblaze/pull/188

contrib/_mblaze: silence mseq errors
On the first run or if you manually delete your sequence file, `mseq` errors will break your prompt when you hit tab.

Thanks,

James

A patch file from https://github.com/leahneukirchen/mblaze/pull/188.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-188.patch --]
[-- Type: text/x-diff, Size: 741 bytes --]

From f5bb905761c79b2d9591fee070045c6c61e8ad6d Mon Sep 17 00:00:00 2001
From: James Rowe <jnrowe@gmail.com>
Date: Sat, 10 Oct 2020 14:19:12 +0100
Subject: [PATCH] contrib/_mblaze: silence mseq errors

On the first run or if you manually delete your sequence file, mseq
errors will break your prompt when you hit tab.
---
 contrib/_mblaze | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/_mblaze b/contrib/_mblaze
index f58cb65..5255629 100644
--- a/contrib/_mblaze
+++ b/contrib/_mblaze
@@ -14,7 +14,7 @@ _mblaze_message() {
     _files "$expl[@]" && ret=0
   fi
 
-  curmsg=$(mseq .)
+  curmsg=$(mseq . 2>/dev/null)
   if [[ -z $curmsg || ! -f $curmsg ]]; then
     _message 'no current sequence'
     return $ret

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Closed]: contrib/_mblaze: silence mseq errors
  2020-10-10 13:25 [PR PATCH] contrib/_mblaze: silence mseq errors JNRowe
@ 2020-10-10 18:48 ` leahneukirchen
  0 siblings, 0 replies; 2+ messages in thread
From: leahneukirchen @ 2020-10-10 18:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 295 bytes --]

There's a closed pull request on the mblaze repository

contrib/_mblaze: silence mseq errors
https://github.com/leahneukirchen/mblaze/pull/188

Description:
On the first run or if you manually delete your sequence file, `mseq` errors will break your prompt when you hit tab.

Thanks,

James

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-10 18:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-10 13:25 [PR PATCH] contrib/_mblaze: silence mseq errors JNRowe
2020-10-10 18:48 ` [PR PATCH] [Closed]: " leahneukirchen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).