Skip to content

Commit

Permalink
Merge pull request #11204 from pinotree/libcmd-editline-helpers
Browse files Browse the repository at this point in the history
libcmd: do not compile editline helpers when building w/ readline
  • Loading branch information
roberth committed Jul 28, 2024
2 parents 933f2c0 + e0198c5 commit 0e151bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libcmd/repl-interacter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -101,6 +102,7 @@ static int listPossibleCallback(char * s, char *** avp)

return ac;
}
#endif

ReadlineLikeInteracter::Guard ReadlineLikeInteracter::init(detail::ReplCompleterMixin * repl)
{
Expand Down

0 comments on commit 0e151bc

Please sign in to comment.