aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nnn.c')
-rw-r--r--src/nnn.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nnn.c b/src/nnn.c
index e516752..b5b461c 100644
--- 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