File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,10 +64,11 @@ static int using_libedit_emulation = 0;
6464static const char libedit_version_tag [] = "EditLine wrapper" ;
6565#endif /* __APPLE__ */
6666
67+ #ifdef HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK
6768static void
6869on_completion_display_matches_hook (char * * matches ,
6970 int num_matches , int max_length );
70-
71+ #endif
7172
7273/* Exported function to send one line to readline's init file parser */
7374
@@ -774,6 +775,7 @@ on_pre_input_hook(void)
774775
775776/* C function to call the Python completion_display_matches */
776777
778+ #ifdef HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK
777779static void
778780on_completion_display_matches_hook (char * * matches ,
779781 int num_matches , int max_length )
@@ -853,6 +855,7 @@ on_completion(const char *text, int state)
853855 }
854856 return result ;
855857}
858+ #endif
856859
857860
858861/* A more flexible constructor that saves the "begidx" and "endidx"
You can’t perform that action at this time.
0 commit comments