diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2014-12-28 20:11:09 -0800 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2014-12-28 20:11:09 -0800 |
commit | e11ad500dd7003fdb9a1bab8616aa853adf0f5ac (patch) | |
tree | ea3cd7526fdd8bf757d849398d7ba1cf1efa95cf /Src | |
parent | 33b395806470eeac408070fec535bfd5efc20a2c (diff) | |
download | zsh-e11ad500dd7003fdb9a1bab8616aa853adf0f5ac.tar.gz zsh-e11ad500dd7003fdb9a1bab8616aa853adf0f5ac.tar.xz zsh-e11ad500dd7003fdb9a1bab8616aa853adf0f5ac.zip |
34070: fix starting position for memset() from 34005.
Diffstat (limited to 'Src')
-rw-r--r-- | Src/Zle/zle_refresh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c index c146e46eb..fe337993f 100644 --- a/Src/Zle/zle_refresh.c +++ b/Src/Zle/zle_refresh.c @@ -457,7 +457,7 @@ set_region_highlight(UNUSED(Param pm), char **aval) zrealloc(region_highlights, sizeof(struct region_highlight) * newsize); if (diffsize > 0) - memset(region_highlights + newsize, 0, + memset(region_highlights + newsize - diffsize, 0, sizeof(struct region_highlight) * diffsize); n_region_highlights = newsize; } |