mirror of
https://github.com/tildeclub/ex-vi.git
synced 2026-06-24 12:49:24 +00:00
* The 'cw' visual command with a multibyte character as last character of
the affected word located at the end of the line left garbage bytes past the end of the new text.
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
|
||||
#ifndef lint
|
||||
#ifdef DOSCCS
|
||||
static char sccsid[] = "@(#)ex_voper.c 1.23 (gritter) 12/1/04";
|
||||
static char sccsid[] = "@(#)ex_voper.c 1.24 (gritter) 1/11/05";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -830,7 +830,7 @@ find(int c)
|
||||
int
|
||||
word(register void (*op)(int), int cnt)
|
||||
{
|
||||
register int which = 0;
|
||||
register int which = 0, i;
|
||||
register char *iwc;
|
||||
register line *iwdot = wdot;
|
||||
|
||||
@@ -839,9 +839,9 @@ word(register void (*op)(int), int cnt)
|
||||
which = wordch(wcursor);
|
||||
while (wordof(which, wcursor)) {
|
||||
if (cnt == 1 && op != vmove &&
|
||||
wcursor[skipright(linebuf, wcursor)]
|
||||
wcursor[i = skipright(linebuf, wcursor)]
|
||||
== 0) {
|
||||
wcursor++;
|
||||
wcursor += i;
|
||||
break;
|
||||
}
|
||||
if (!lnext())
|
||||
|
||||
Reference in New Issue
Block a user