Merge pull request #11204 from pinotree/libcmd-editline-helpers

libcmd: do not compile editline helpers when building w/ readline
This commit is contained in:
Robert Hensing 2024-07-28 16:10:32 +02:00 committed by GitHub
commit 0e151bcbf0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,6 +35,7 @@ void sigintHandler(int signo)
static detail::ReplCompleterMixin * curRepl; // ugly
#ifndef USE_READLINE
static char * completionCallback(char * s, int * match)
{
auto possible = curRepl->completePrefix(s);
@ -101,6 +102,7 @@ static int listPossibleCallback(char * s, char *** avp)
return ac;
}
#endif
ReadlineLikeInteracter::Guard ReadlineLikeInteracter::init(detail::ReplCompleterMixin * repl)
{