summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2012-06-16 04:30:35 +0000
committerBart Schaefer <barts@users.sourceforge.net>2012-06-16 04:30:35 +0000
commit38a4364db5ff298558fea28334a49c41f5921e7e (patch)
treecab5ad6b05e43f1dcdb74e97fd6c7c0f019aa219
parent0ea4e90a7af0cec155dcd2548678ef05946edcc9 (diff)
downloadzsh-38a4364db5ff298558fea28334a49c41f5921e7e.tar.gz
zsh-38a4364db5ff298558fea28334a49c41f5921e7e.zip
users/17134: avoid bad math error
-rw-r--r--ChangeLog6
-rw-r--r--Functions/Misc/promptnl2
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ecc8b5dd3..4e673df94 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -18,6 +18,10 @@
* Jeremy Mates: 30505: Completion/Unix/Command/_wget: Allow
multiple --header=.
+2012-06-06 Barton E. Schaefer <schaefer@zsh.org>
+
+ * users/17134: Functions/Misc/promptnl: avoid bad math error
+
2012-06-06 Peter Stephenson <pws@csr.com>
* Vincent: 30497: Completion/Unix/Command/_xmlsoft: option
@@ -16365,5 +16369,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.5669 $
+* $Revision: 1.5670 $
*****************************************************
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