summary refs log tree commit diff
path: root/Src/hist.c
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2021-07-23 20:27:38 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2021-07-23 20:27:38 +0100
commit50dc7f29131b668daaa82c02a826763e6e9a3a44 (patch)
tree79a96332f186551b2151567ca67258fd1db7a42d /Src/hist.c
parentd9e5ef02040d846a7b1ea1f7283f57152859bd6c (diff)
downloadzsh-50dc7f29131b668daaa82c02a826763e6e9a3a44.tar.gz
zsh-50dc7f29131b668daaa82c02a826763e6e9a3a44.tar.xz
zsh-50dc7f29131b668daaa82c02a826763e6e9a3a44.zip
49182: Turn off correction inside command substition.
In "A=$(PWD)" we dont't have the information to correct at the level of the
PWD subcommand, so don't try to do it as this causes a crash.
Diffstat (limited to 'Src/hist.c')
-rw-r--r--Src/hist.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Src/hist.c b/Src/hist.c
index 42cae030c..6ac581fda 100644
--- a/Src/hist.c
+++ b/Src/hist.c
@@ -339,6 +339,13 @@ hist_in_word(int yesno)
 	histactive &= ~HA_INWORD;
 }
 
+/**/
+int
+hist_is_in_word(void)
+{
+    return (histactive & HA_INWORD) ? 1 : 0;
+}
+
 /* add a character to the current history word */
 
 static void