Merge pull request #309 from 0xACE/readline-resize

stop readline from overwriting LINES
This commit is contained in:
Mischievous Meerkat 2019-07-16 08:43:17 +05:30 committed by GitHub
commit e3c99de23a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4783,6 +4783,10 @@ int main(int argc, char *argv[])
setlocale(LC_ALL, ""); setlocale(LC_ALL, "");
#ifndef NORL #ifndef NORL
#if RL_READLINE_VERSION >= 0x0603
/* readline would overwrite the WINCH signal hook */
rl_change_environment = 0;
#endif
/* Bind TAB to cycling */ /* Bind TAB to cycling */
rl_variable_bind("completion-ignore-case", "on"); rl_variable_bind("completion-ignore-case", "on");
#ifdef __linux__ #ifdef __linux__