clarify the warning message when sufficient wide character support isn't
found, and merge missing part of DB's patch to handle tabs properly in display_string() git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2203 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
родитель
6a643cd596
Коммит
c195820456
@ -361,7 +361,7 @@ if test "x$CURSES_LIB_WIDE" = "xyes" -a "x$ac_cv_func_mbtowc" = "xyes" -a "x$ac_
|
|||||||
then
|
then
|
||||||
AC_DEFINE(NANO_WIDE, 1, [Define this if your system has wide character support (a wide curses library, mbtowc(), wctomb(), and wcwidth()).])
|
AC_DEFINE(NANO_WIDE, 1, [Define this if your system has wide character support (a wide curses library, mbtowc(), wctomb(), and wcwidth()).])
|
||||||
else
|
else
|
||||||
AC_MSG_WARN([No wide character support found. nano will not be able to support UTF-8.])
|
AC_MSG_WARN([Insufficient wide character support found. nano will not be able to support UTF-8.])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_CONFIG_FILES([
|
AC_CONFIG_FILES([
|
||||||
|
@ -1937,7 +1937,7 @@ char *display_string(const char *buf, size_t start_col, size_t len, bool
|
|||||||
#endif
|
#endif
|
||||||
' ';
|
' ';
|
||||||
start_col++;
|
start_col++;
|
||||||
while ((column + index) % tabsize) {
|
while (start_col % tabsize != 0) {
|
||||||
converted[index++] = ' ';
|
converted[index++] = ' ';
|
||||||
start_col++;
|
start_col++;
|
||||||
}
|
}
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user