mirror of https://github.com/tildeclub/ex-vi.git
* Made multicolumn characters work in lines longer than the screen width in
visual mode (Bugreport by Matthew Fischer).
This commit is contained in:
parent
d1a3bb3efa
commit
22e0a4753c
3
ex_put.c
3
ex_put.c
|
@ -73,7 +73,7 @@
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
#ifdef DOSCCS
|
#ifdef DOSCCS
|
||||||
static char sccsid[] = "@(#)ex_put.c 1.29 (gritter) 1/20/05";
|
static char sccsid[] = "@(#)ex_put.c 1.30 (gritter) 2/15/05";
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -973,6 +973,7 @@ putch(int c)
|
||||||
if (c == 0)
|
if (c == 0)
|
||||||
return MULTICOL;
|
return MULTICOL;
|
||||||
}
|
}
|
||||||
|
c &= ~INVBIT; /* strip '~' | INVBIT multicolumn filler */
|
||||||
#ifdef MB
|
#ifdef MB
|
||||||
if (mb_cur_max > 1 && c & ~(wchar_t)0177) {
|
if (mb_cur_max > 1 && c & ~(wchar_t)0177) {
|
||||||
char mb[MB_LEN_MAX];
|
char mb[MB_LEN_MAX];
|
||||||
|
|
Loading…
Reference in New Issue