about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2013-03-15 20:15:10 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2013-03-15 20:15:10 +0000
commit136cc1e1b79ebc07f5deb630fea9d325276d077c (patch)
treeee76079e38ef997ad9dfb3d5d71b3faac25f36ba /Doc
parenta69f05b4cecb800c8d09c9ab94ef18d11ef275e8 (diff)
downloadzsh-136cc1e1b79ebc07f5deb630fea9d325276d077c.tar.gz
zsh-136cc1e1b79ebc07f5deb630fea9d325276d077c.tar.xz
zsh-136cc1e1b79ebc07f5deb630fea9d325276d077c.zip
31154: make zcalc understand continuation lines with a backslash
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/contrib.yo7
1 files changed, 6 insertions, 1 deletions
diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo
index 227914105..f13aa79cf 100644
--- a/Doc/Zsh/contrib.yo
+++ b/Doc/Zsh/contrib.yo
@@ -3144,7 +3144,12 @@ line preceded by `tt(4> )' is available as tt($4).  The last value
 calculated is available as tt(ans).  Full command line editing, including
 the history of previous calculations, is available; the history is saved in
 the file tt(~/.zcalc_history).  To exit, enter a blank line or type `tt(:q)'
-on its own (`tt(q)' is allowed for historical compatibility).
+on its own (`tt(q)' is allowed for historical compatibility).  A
+line ending with a single backslash is treated in the same fashion
+as it is in command line editing:  the backslash is removed, the
+function prompts for more input (the prompt is preceded by `tt(...)'
+to indicate this), and the lines are combined into one to get the final
+result.
 
 If arguments are given to tt(zcalc) on start up, they are used to prime the
 first few positional parameters.  A visual indication of this is given when