mirror of
https://github.com/ksherlock/mpw.git
synced 2024-09-27 10:55:49 +00:00
Compare commits
2 Commits
2dcb161f5e
...
6151ca1e87
Author | SHA1 | Date | |
---|---|---|---|
|
6151ca1e87 | ||
|
b9c7d9f95f |
@ -1135,6 +1135,8 @@ namespace {
|
|||||||
{
|
{
|
||||||
std::string s(text);
|
std::string s(text);
|
||||||
|
|
||||||
|
rl_attempted_completion_over = 1; // suppress filename completion if no results.
|
||||||
|
|
||||||
// returns iter to first element _not less_ than key
|
// returns iter to first element _not less_ than key
|
||||||
// ie, >= key.
|
// ie, >= key.
|
||||||
auto iter = SymbolTable.lower_bound(s);
|
auto iter = SymbolTable.lower_bound(s);
|
||||||
@ -1213,19 +1215,11 @@ namespace {
|
|||||||
return buffer;
|
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()
|
void readline_init()
|
||||||
{
|
{
|
||||||
rl_readline_name = (char *)"mpw";
|
rl_readline_name = (char *)"mpw";
|
||||||
rl_attempted_completion_function = mpw_attempted_completion_function;
|
rl_attempted_completion_function = mpw_attempted_completion_function;
|
||||||
rl_completion_entry_function = (Function *)mpw_completion_entry_function;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
libsane
2
libsane
@ -1 +1 @@
|
|||||||
Subproject commit 9c2af7c48dcbb58a5af436c295e83643c7f33f8b
|
Subproject commit 8a47aacd7d8a19566701ae60dd03ff3c6e6b3634
|
Loading…
Reference in New Issue
Block a user