summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--mshow.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mshow.c b/mshow.c
index 3a7fdce..f3b73a8 100644
--- a/mshow.c
+++ b/mshow.c
@@ -839,7 +839,8 @@ main(int argc, char *argv[])
 		else
 			blaze822_loop(argc-optind, argv+optind, show);
 		if (!nflag) // don't set cur
-			blaze822_seq_setcur(newcur);
+			if (newcur)
+				blaze822_seq_setcur(newcur);
 	}
 
 	if (pid2 > 0)