mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-05-31 20:36:03 +02:00
34070: fix starting position for memset() from 34005.
This commit is contained in:
parent
33b3958064
commit
e11ad500dd
|
@ -1,5 +1,8 @@
|
|||
2014-12-28 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* Daniel Shahaf: 34070: Src/Zle/zle_refresh.c: fix starting
|
||||
position for memset() from 34005.
|
||||
|
||||
* 34068: Completion/Base/Widget/_complete_debug,
|
||||
Completion/Unix/Command/_cvs, Completion/compinstall,
|
||||
Functions/Calendar/calendar, Functions/Zftp/zfcd_match,
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue