From b68a0ee082b2a91145f42e23f69d192e8128990c Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Mon, 13 Dec 2021 02:32:16 +0100 Subject: [PATCH] readline autocomplete: fix rl_attempted_completion_over in script --- client/pyscripts/pm3_help2list.py | 2 +- client/src/rl_vocabulory.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/pyscripts/pm3_help2list.py b/client/pyscripts/pm3_help2list.py index 637e10e6d..15ead4198 100755 --- a/client/pyscripts/pm3_help2list.py +++ b/client/pyscripts/pm3_help2list.py @@ -93,7 +93,7 @@ const static vocabulory_t vocabulory[] = {\n""") char **rl_command_completion(const char *text, int start, int end) { - rl_attempted_completion_over = 1; + rl_attempted_completion_over = 0; return rl_completion_matches (text, rl_command_generator); } diff --git a/client/src/rl_vocabulory.h b/client/src/rl_vocabulory.h index ae74f3f8f..0604969e7 100644 --- a/client/src/rl_vocabulory.h +++ b/client/src/rl_vocabulory.h @@ -703,7 +703,7 @@ const static vocabulory_t vocabulory[] = { char **rl_command_completion(const char *text, int start, int end) { - rl_attempted_completion_over = 1; + rl_attempted_completion_over = 0; return rl_completion_matches (text, rl_command_generator); }