]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix build break; rl_menu_complete missing on macOS
authorArun Prakash Jana <engineerarun@gmail.com>
Thu, 24 Jan 2019 06:53:59 +0000 (12:23 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Thu, 24 Jan 2019 06:53:59 +0000 (12:23 +0530)
src/nnn.c

index e516752a29bd62fd91899ef497c5ec13d66d71ca..b5b461c17bd8241b530ba18a5009bc295b878891 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4031,7 +4031,11 @@ int main(int argc, char *argv[])
 
        /* Bind TAB to cycling */
        rl_variable_bind("completion-ignore-case", "on");
+#ifdef __linux__
        rl_bind_key('\t', rl_menu_complete);
+#else
+       rl_bind_key('\t', rl_complete);
+#endif
        read_history(NULL);
 
 #ifdef DEBUGMODE