Pārlūkot izejas kodu

HAVELIBREADLINE

master
gtheler pirms 5 gadiem
vecāks
revīzija
080b5709fe
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      src/tty.cpp

+ 2
- 2
src/tty.cpp Parādīt failu

@@ -514,7 +514,7 @@ int Tty::list_index = 0;
int Tty::len = 0;

char *Tty::rl_command_generator(const char *text, int state) {
#ifdef HAVE_READLINE
#ifdef HAVE_LIBREADLINE
if (!state) {
list_index = 0;
@@ -533,7 +533,7 @@ char *Tty::rl_command_generator(const char *text, int state) {

char **Tty::rl_completion(const char *text, int start, int end) {
char **matches = NULL;
#ifdef HAVE_READLINE
#ifdef HAVE_LIBREADLINE
matches = rl_completion_matches(text, rl_command_generator);
#endif
return matches;

Notiek ielāde…
Atcelt
Saglabāt