* Made multicolumn characters work in lines longer than the screen width in

visual mode (Bugreport by Matthew Fischer).
This commit is contained in:
Gunnar Ritter 2005-02-15 16:40:38 +00:00
parent d1a3bb3efa
commit 22e0a4753c
1 changed files with 2 additions and 1 deletions

View File

@ -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];