summaryrefslogtreecommitdiffstats
path: root/Src/zsh.h
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2017-05-18 09:33:08 +0100
committerPeter Stephenson <pws@zsh.org>2017-05-18 09:33:08 +0100
commit94014ff65bc2bdd752717792b156cdfcbc5b5c98 (patch)
treeec76c6a7a4c436e892db2fafa797624378cfba89 /Src/zsh.h
parent41090: Replace iswprint() if unicode9 is enabled. (diff)
downloadzsh-94014ff65bc2bdd752717792b156cdfcbc5b5c98.tar
zsh-94014ff65bc2bdd752717792b156cdfcbc5b5c98.tar.gz
zsh-94014ff65bc2bdd752717792b156cdfcbc5b5c98.tar.bz2
zsh-94014ff65bc2bdd752717792b156cdfcbc5b5c98.tar.lz
zsh-94014ff65bc2bdd752717792b156cdfcbc5b5c98.tar.xz
zsh-94014ff65bc2bdd752717792b156cdfcbc5b5c98.tar.zst
zsh-94014ff65bc2bdd752717792b156cdfcbc5b5c98.zip
41113 (tweaked): Save current line linkage to history ring.
When saving history state save whether the current history line is linked into the ring and remove it, and restore as appropriate later. This avoids surprises where the history ring is freed and incorrectly frees the current state in curline, which has a different allocation strategy. Original patch tweaked to make restoring more logical.
Diffstat (limited to 'Src/zsh.h')
-rw-r--r--Src/zsh.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Src/zsh.h b/Src/zsh.h
index 22f73f806..405b27490 100644
--- a/Src/zsh.h
+++ b/Src/zsh.h
@@ -2931,6 +2931,7 @@ struct hist_stack {
void (*addtoline) _((int));
unsigned char *cstack;
int csp;
+ int curline_linked;
};
/*