libedit: vendor import libedit 2021-03-28(cherry picked from commit f9a159da2a292968cd5c37b56a6c43b6af8c5eed)(cherry picked from commit 19318a62d7f8cfe2f0f5c24178fa33e8844ae5d1)
Fix arm and aarch64 builds of libedit after r352275On arm and arm64, where chars are unsigned by default, buildworld dieswith:--- terminal.o ---/usr/src/contrib/libedit/terminal.c:569:41: error
Fix arm and aarch64 builds of libedit after r352275On arm and arm64, where chars are unsigned by default, buildworld dieswith:--- terminal.o ---/usr/src/contrib/libedit/terminal.c:569:41: error: comparison ofintegers of different signs: 'wint_t' (aka 'int') and 'wchar_t' (aka'unsigned int') [-Werror,-Wsign-compare] el->el_cursor.v][where & 0370] != ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^/usr/src/contrib/libedit/terminal.c:659:28: error: comparison ofintegers of different signs: 'wint_t' (aka 'int') and 'wchar_t' (aka'unsigned int') [-Werror,-Wsign-compare] [el->el_cursor.h] == MB_FILL_CHAR) ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~Fix this by making MB_FILL_CHAR a wint_t, so no casting is needed.Note that in https://reviews.freebsd.org/D21584 this was also proposedby Yuichiro Naito <naito.yuichiro_gmail.com>.Reviewed by: baptSubscribers: naito.yuichiro_gmail.com, ml_vishwin.infoMFC after: 3 weeksX-MFC-With: r352275Differential Revision: https://reviews.freebsd.org/D21657
show more ...
Readd _el_fn_sh_complete for backward compatibilityThis function is not needed anymore, it allows old sh binary to continueto run and avoid breaking backward compatibility.Note that is now just c
Readd _el_fn_sh_complete for backward compatibilityThis function is not needed anymore, it allows old sh binary to continueto run and avoid breaking backward compatibility.Note that is now just calls the regular _el_fn_complete which does a properjob at quoting.Discussed with: jilles
Import libedit 2019-09-10Compared to current version in base:- great improvements on the Unicode support- full support for filename completion including quoting which means we do not need anymo
Import libedit 2019-09-10Compared to current version in base:- great improvements on the Unicode support- full support for filename completion including quoting which means we do not need anymore our custom addition)- Improved readline compatiblityUpgrading libedit has been a pain in the past, because somehow we nevermanaged to properly cleanup the tree in lib/libedit and each merge has alwaysbeen very painful. After years of fighting give up and refresh a merge fromscrarch properly in contrib.Note that the switch to this version will be done in another commit.