Compare commits

...

2 Commits

Author SHA1 Message Date
Kelvin Sherlock 6151ca1e87 use rl_attempted_completion_over to suppress standard filename completion logic. 2023-06-30 18:17:50 -04:00
Kelvin Sherlock b9c7d9f95f submodule bump 2023-06-30 16:51:07 -04:00
2 changed files with 3 additions and 9 deletions

View File

@ -1135,6 +1135,8 @@ namespace {
{
std::string s(text);
rl_attempted_completion_over = 1; // suppress filename completion if no results.
// returns iter to first element _not less_ than key
// ie, >= key.
auto iter = SymbolTable.lower_bound(s);
@ -1213,19 +1215,11 @@ namespace {
return buffer;
}
// this is here to prevent filename tab completion, for now.
// state is 0 for first call, non-zero for subsequent calls. It
// should return 1 match per invocation, NULL if no more matches.
char *mpw_completion_entry_function(const char *text, int state)
{
return NULL;
}
void readline_init()
{
rl_readline_name = (char *)"mpw";
rl_attempted_completion_function = mpw_attempted_completion_function;
rl_completion_entry_function = (Function *)mpw_completion_entry_function;
}
}

@ -1 +1 @@
Subproject commit 9c2af7c48dcbb58a5af436c295e83643c7f33f8b
Subproject commit 8a47aacd7d8a19566701ae60dd03ff3c6e6b3634