diff options
author | stephan <stephan@noemail.net> | 2024-10-27 18:46:11 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2024-10-27 18:46:11 +0000 |
commit | 9905e7e22bca3c5ef07d77aed1e09823697d345d (patch) | |
tree | 4aae8c97fe93877fe27140c833c125fd707bdaa7 /src | |
parent | 6d05f9af814503db015a83627f3a80a77494c5a2 (diff) | |
download | sqlite-9905e7e22bca3c5ef07d77aed1e09823697d345d.tar.gz sqlite-9905e7e22bca3c5ef07d77aed1e09823697d345d.zip |
When readline is enabled, attempt to determine whether the completion API is compatible and, if it's not, disable it in the shell app.
FossilOrigin-Name: 4564dbe4ac0040803b5d139c9fff22a60a45b4769d80ad7c824456cc6b9f1722
Diffstat (limited to 'src')
-rw-r--r-- | src/shell.c.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shell.c.in b/src/shell.c.in index bbf08f809..df0c3500d 100644 --- a/src/shell.c.in +++ b/src/shell.c.in @@ -5759,7 +5759,8 @@ void close_db(sqlite3 *db){ } } -#if HAVE_READLINE || HAVE_EDITLINE +#if (HAVE_READLINE || HAVE_EDITLINE) \ + && !defined(SQLITE_OMIT_READLINE_COMPLETION) /* ** Readline completion callbacks */ @@ -13259,7 +13260,7 @@ int SQLITE_CDECL wmain(int argc, wchar_t **wargv){ } } if( zHistory ){ shell_read_history(zHistory); } -#if HAVE_READLINE || HAVE_EDITLINE +#if (HAVE_READLINE || HAVE_EDITLINE) && !defined(SQLITE_OMIT_READLINE_COMPLETION) rl_attempted_completion_function = readline_completion; #elif HAVE_LINENOISE linenoiseSetCompletionCallback(linenoise_completion, NULL); |