Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Patch for zle_refresh.c
- X-seq: zsh-workers 3260
- From: mason@xxxxxxxxxxxxxxx (Geoff Wing)
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: Patch for zle_refresh.c
- Date: 19 Jun 1997 08:24:32 GMT
- Organization: PrimeNet
- References: <9706190624.AA05850@xxxxxxxxxxxxxxxxxxxxxxxxx> from SUZUKI Hisao at "Jun 19, 97 03:24:32 pm" <199706190704.DAA05872@xxxxxxxxxx>
- Reply-to: mason@xxxxxxxxxxxxxxx
On 19 Jun 1997 17:09:00 +1000, Zoltan Hidvegi <hzoli@xxxxxxxxxxxxxxxxxxx> wrote:
:And I should apologize for the delay of zsh-3.0.4. I have almost made a
:release but then came two new fixes from Peter az Zefram.
Well, I better give you this patch then. It's against 3.0.3 (I think).
Note: this is a fix to avoid a coredump - it's a kludge because I haven't
looked into the reasons behind it yet so I don't know if something else is
buggy or just this. Also, a couple of people - Andrej Borsenkow & Zefram -
have indicated another problem with the display which I haven't got round to
investigating properly yet; I can't reproduce it from their methods.
*** zle_refresh.c.org Tue Jun 3 15:11:25 1997
--- zle_refresh.c Thu Jun 19 18:13:46 1997
***************
*** 758,763 ****
--- 758,765 ----
void
moveto(int ln, int cl)
{
+ int c;
+
if (vcs == winw) {
vln++, vcs = 0;
if (!hasam) {
***************
*** 765,776 ****
zputc('\n', shout);
} else {
if ((vln < nlnct) && nbuf[vln] && *nbuf[vln])
! zputc(*nbuf[vln], shout);
else
! zputc(' ', shout);
zputc('\r', shout);
if ((vln < olnct) && obuf[vln] && *obuf[vln])
! *obuf[vln] = *nbuf[vln];
}
}
--- 767,779 ----
zputc('\n', shout);
} else {
if ((vln < nlnct) && nbuf[vln] && *nbuf[vln])
! c = *nbuf[vln];
else
! c = ' ';
! zputc(c, shout);
zputc('\r', shout);
if ((vln < olnct) && obuf[vln] && *obuf[vln])
! *obuf[vln] = c;
}
}
--
Geoff Wing [mason@xxxxxxxxxxxxxxx] Technical Manager
Phone : +61-3-9818 2977 PrimeNet - Internet Consultancy
Facsimile: +61-3-9819 3788 Web : <URL:http://www.primenet.com.au/>
Mobile : 0412 162 441
Messages sorted by:
Reverse Date,
Date,
Thread,
Author