1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-30 19:20:53 +02:00

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.
This commit is contained in:
Peter Stephenson 2015-01-16 20:31:11 +00:00
parent f2a2f28f7b
commit 0f60d18249
2 changed files with 9 additions and 2 deletions

View file

@ -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.

View file

@ -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.
*/
/**/