about summary refs log tree commit diff
path: root/mless
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-07-21 20:37:23 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-07-21 20:37:23 +0200
commit49b88176a067ceb6695fa7e20bb80ca8edaf5d18 (patch)
treed12bd0741f8b4a82be67bcb478ece8578076d6f8 /mless
parentac679b264c05b65945dc9c0aa84f721785d9a1f2 (diff)
downloadmblaze-49b88176a067ceb6695fa7e20bb80ca8edaf5d18.tar.gz
mblaze-49b88176a067ceb6695fa7e20bb80ca8edaf5d18.tar.xz
mblaze-49b88176a067ceb6695fa7e20bb80ca8edaf5d18.zip
mless: don't error on unresolved mid
Diffstat (limited to 'mless')
-rwxr-xr-xmless5
1 files changed, 5 insertions, 0 deletions
diff --git a/mless b/mless
index ae2176f..6e4ebc1 100755
--- a/mless
+++ b/mless
@@ -6,6 +6,11 @@ PATH="${0%/*}:$PATH"
 if [ "$1" = --filter ]; then
 	[ "$2" = //scan ] && exec mscan :
 
+	if ! [ -f $(mseq "$2") ]; then
+		mseq "$2"
+		exit
+	fi
+
 	mshow "$2" | awk '
 function fg(c, s) { return sprintf("\033[38;5;%03dm%s\033[0m", c, s) }
 function so(s) { return sprintf("\033[1m%s\033[0m", s) }