From: Arun Prakash Jana Date: Thu, 24 Jan 2019 06:53:59 +0000 (+0530) Subject: Fix build break; rl_menu_complete missing on macOS X-Git-Tag: v2.3~89 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=e039b0ee354b5f76f71d5ba6f918130bc91d8fe2;p=nnn.git Fix build break; rl_menu_complete missing on macOS --- diff --git a/src/nnn.c b/src/nnn.c index e516752a..b5b461c1 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