mirror of
https://github.com/tildeclub/ex-vi.git
synced 2026-06-24 12:49:24 +00:00
* Fixed a segmentation fault that occured in multibyte locales when operation
was continued after vi had been stopped by ^Z, with the cursor positioned in a line longer than the terminal width as the last line of the current screen.
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
|
||||
#ifndef lint
|
||||
#ifdef DOSCCS
|
||||
static char sccsid[] = "@(#)ex_vput.c 1.43 (gritter) 1/20/05";
|
||||
static char sccsid[] = "@(#)ex_vput.c 1.44 (gritter) 1/22/05";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -373,7 +373,7 @@ vgoto(register int y, register int x)
|
||||
x %= WCOLS;
|
||||
}
|
||||
#ifdef MB
|
||||
if (y >= 0 && mb_cur_max > 1 && !insmode) {
|
||||
if (y >= 0 && y <= WLINES && mb_cur_max > 1 && !insmode) {
|
||||
while (x > 0 && (vtube[y][x]&(MULTICOL|TRIM)) == MULTICOL)
|
||||
x--;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user