From 38a4364db5ff298558fea28334a49c41f5921e7e Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Sat, 16 Jun 2012 04:30:35 +0000 Subject: users/17134: avoid bad math error --- Functions/Misc/promptnl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Functions') diff --git a/Functions/Misc/promptnl b/Functions/Misc/promptnl index a98c4b8ee..155d58770 100644 --- a/Functions/Misc/promptnl +++ b/Functions/Misc/promptnl @@ -62,7 +62,7 @@ done # If the cursor is not in the first column, emit EOLMARK and newline. -(( ${${RECV#*\;}%R} > 1 )) && print -P -- $EOLMARK +(( ${${${RECV#*\;}%R}:-0} > 1 )) && print -P -- $EOLMARK return 0 -- cgit 1.4.1