1
1

in mbwidth(), if wcwidth() returns -1 for the character passed in, treat

the character as being one column wide instead of zero columns wide,
since there are display problems that crop up with the latter approach


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3102 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
David Lawrence Ramsey 2005-11-08 02:20:22 +00:00
родитель 069674c2d5
Коммит 4a8c9b6124
2 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -73,6 +73,12 @@ CVS code -
nanogetstr() (renamed get_prompt_string()), statusq() (renamed nanogetstr() (renamed get_prompt_string()), statusq() (renamed
do_prompt()), statusq_abort() (renamed do_prompt_abort()), and do_prompt()), statusq_abort() (renamed do_prompt_abort()), and
do_yesno() (renamed do_yesno_prompt()). (DLR) do_yesno() (renamed do_yesno_prompt()). (DLR)
- chars.c:
mbwidth()
- If wcwidth() returns -1 for the character passed in, treat the
character as being one column wide instead of zero columns
wide, since there are display problems that crop up with the
latter approach. (DLR)
- files.c: - files.c:
read_file() read_file()
- Remove apparently unneeded logic to handle a case where - Remove apparently unneeded logic to handle a case where

Просмотреть файл

@ -300,7 +300,7 @@ int mbwidth(const char *c)
width = wcwidth(wc); width = wcwidth(wc);
if (width == -1) if (width == -1)
width++; width = 1;
return width; return width;
} else } else