summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2015-01-16 20:31:11 +0000
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2015-01-16 20:31:11 +0000
commit0f60d182495109dfbb06e21c20f1a30d858aaaec (patch)
tree983c3ab52076cb9d53df36d1be2b301156e5a6b9
parentf2a2f28f7bde196cd1fa205ac0c20336046cf2cf (diff)
downloadzsh-0f60d182495109dfbb06e21c20f1a30d858aaaec.tar.gz
zsh-0f60d182495109dfbb06e21c20f1a30d858aaaec.zip
unposted: improve comment on hist_in_word().
Commit f2a2f28f7 was a bit less clear about how hist_in_word() was used than it could be.
-rw-r--r--ChangeLog3
-rw-r--r--Src/hist.c8
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 3a7e3cdf4..e77551678 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2015-01-16 Peter Stephenson <p.w.stephenson@ntlworld.com>
+ * unposted: Src/hist.c: improve confusing comment in previous
+ commit.
+
* 34313: Src/hist.c, Src/lex.c: need to turn off history
word markers when parsing command substitution.
diff --git a/Src/hist.c b/Src/hist.c
index c77b5dd9d..9d317c4b5 100644
--- a/Src/hist.c
+++ b/Src/hist.c
@@ -302,9 +302,13 @@ hist_context_restore(const struct hist_stack *hs, int toplevel)
}
/*
- * Mark that the current level of history is or is not
- * within a word, whatever turns up. This is used for nested
+ * Mark that the current level of history is within a word whatever
+ * characters turn up, or turn that mode off. This is used for nested
* parsing of substitutions.
+ *
+ * The caller takes care only to turn this on or off at the start
+ * or end of recursive use of the same mode, so a single flag is
+ * good enough here.
*/
/**/