* Visual 'U' followed by 'u' lead to garbage on the screen when multibyte

characters were present on the changed line.
This commit is contained in:
Gunnar Ritter
2005-01-10 23:32:28 +00:00
parent 335f1e9f08
commit 91464fa6fb
4 changed files with 14 additions and 9 deletions

View File

@@ -73,7 +73,7 @@
#ifndef lint
#ifdef DOSCCS
static char sccsid[] = "@(#)ex_vops.c 1.24 (gritter) 1/10/05";
static char sccsid[] = "@(#)ex_vops.c 1.25 (gritter) 1/11/05";
#endif
#endif
@@ -225,8 +225,12 @@ vundo (
OO = Outchar; Outchar = vinschar; hold |= HOLDQIK;
vprepins();
temp[vUA2 - linebuf] = 0;
for (cp = &temp[vUA1 - linebuf]; *cp;)
putchar(*cp++);
for (cp = &temp[vUA1 - linebuf]; *cp;) {
int c, n;
nextc(c, cp, n);
cp += n;
putchar(c);
}
Outchar = OO; hold = oldhold;
endim();
physdc(cindent(), cindent() + doomed);