diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-06-25 11:41:21 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-06-25 11:50:33 +0000 |
commit | dd6e702ee49c7292c39037843b1b1b2b080f9fda (patch) | |
tree | 7ecc508913350d8c5ef0f907e4c65c9a817d75a3 /Src/Zle/zle.h | |
parent | 304ce85a2ad9c42351903fb16da36f02ad144de7 (diff) | |
download | zsh-dd6e702ee49c7292c39037843b1b1b2b080f9fda.tar.gz zsh-dd6e702ee49c7292c39037843b1b1b2b080f9fda.zip |
46068 (tweaked) (was: github #57): region_highlight: Add memo= support.
This is useful when multiple plugins add region_highlight entries and
subsequently want to remove only their own entries. Without this
functionality, recognizing one's region_highlight entries is not trivial
because the 'start' and 'end' offsets are modified by editing of $BUFFER
and the highlight specification may not be unique or distinctive.
The tweaks are as follows:
- Change zfree() to zsfree() per workers/46070.
- Remove the mem.c hunk, as it changed the signature of only one out of
two alternative definitions of zsfree(). (The definition that hunk
touched is the one that's not used by default.)
Diffstat (limited to 'Src/Zle/zle.h')
-rw-r--r-- | Src/Zle/zle.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Src/Zle/zle.h b/Src/Zle/zle.h index 609493f8c..391586c4a 100644 --- a/Src/Zle/zle.h +++ b/Src/Zle/zle.h @@ -447,6 +447,10 @@ struct region_highlight { * Any of the flags defined above. */ int flags; + /* + * User-settable "memo" key. Metafied. + */ + const char *memo; }; /* |