1
0
Fork 0
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:
Daniel Shahaf 2014-12-28 20:11:09 -08:00 committed by Barton E. Schaefer
parent 33b3958064
commit e11ad500dd
2 changed files with 4 additions and 1 deletions

View File

@ -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,

View File

@ -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;
}