1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-04 10:41:11 +02:00

28160, 28164: fix redisplay problem after display reset

This commit is contained in:
Peter Stephenson 2010-08-13 08:52:06 +00:00
parent 80eee3a4a3
commit 8e5061d0c6
2 changed files with 14 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2010-08-13 Peter Stephenson <pws@csr.com>
* 28160 modified as per 28164: Src/Zle/zle_refresh.c: when the
display was reset we didn't properly mark the old display line
as invalid. This could mean the display didn't get redrawn
properly.
2010-08-11 Peter Stephenson <pws@csr.com>
* 28139: based on Frank Terbeck: 28122: Src/Zle/zle_params.c,
@ -13518,5 +13525,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.5055 $
* $Revision: 1.5056 $
*****************************************************

View file

@ -1789,7 +1789,7 @@ refreshline(int ln)
/* 0: setup */
nl = nbuf[ln];
rnllen = nllen = nl ? ZR_strlen(nl) : 0;
if (obuf[ln]) {
if (ln < olnct && obuf[ln]) {
ol = obuf[ln];
ollen = ZR_strlen(ol);
}
@ -2083,6 +2083,11 @@ refreshline(int ln)
if (now_off)
settextattributes(TXT_ATTR_OFF_FROM_ON(now_off));
/*
* This is deliberately called if nl->chr is WEOF
* in order to keep text attributes consistent.
* We check for WEOF inside.
*/
zputc(nl);
nl++, ol++;
ccs++, vcs++;