forked from aniani/vim
patch 8.0.0907: with cp932 font names might be misinterpreted
Problem: With cp932 font names might be misinterpreted.
Solution: Do not see "_" as a space when it is the second byte of a double
byte character. (Ken Takata)
This commit is contained in:
@@ -2965,7 +2965,9 @@ get_logfont(
|
|||||||
int did_replace = FALSE;
|
int did_replace = FALSE;
|
||||||
|
|
||||||
for (i = 0; lf->lfFaceName[i]; ++i)
|
for (i = 0; lf->lfFaceName[i]; ++i)
|
||||||
if (lf->lfFaceName[i] == '_')
|
if (IsDBCSLeadByte(lf->lfFaceName[i]))
|
||||||
|
++i;
|
||||||
|
else if (lf->lfFaceName[i] == '_')
|
||||||
{
|
{
|
||||||
lf->lfFaceName[i] = ' ';
|
lf->lfFaceName[i] = ' ';
|
||||||
did_replace = TRUE;
|
did_replace = TRUE;
|
||||||
|
|||||||
@@ -769,6 +769,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
907,
|
||||||
/**/
|
/**/
|
||||||
906,
|
906,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user