Apply tentative fix for libedit build error on arm.
This commit is contained in:
parent
61c1328eb0
commit
c0035c9efc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/clang900-import/; revision=352316
@ -87,7 +87,7 @@ libedit_private size_t ct_enc_width(wchar_t);
|
||||
/* The terminal is thought of in terms of X columns by Y lines. In the cases
|
||||
* where a wide character takes up more than one column, the adjacent
|
||||
* occupied column entries will contain this faux character. */
|
||||
#define MB_FILL_CHAR ((wchar_t)-1)
|
||||
#define MB_FILL_CHAR ((wint_t)-1)
|
||||
|
||||
/* Visual width of character c, taking into account ^? , \0177 and \U+nnnnn
|
||||
* style visual expansions. */
|
||||
|
@ -1224,7 +1224,7 @@ terminal__putc(EditLine *el, wint_t c)
|
||||
{
|
||||
char buf[MB_LEN_MAX +1];
|
||||
ssize_t i;
|
||||
if (c == (wint_t)MB_FILL_CHAR)
|
||||
if (c == MB_FILL_CHAR)
|
||||
return 0;
|
||||
if (c & EL_LITERAL)
|
||||
return fputs(literal_get(el, c), el->el_outfile);
|
||||
|
Loading…
Reference in New Issue
Block a user