Skip to content
Snippets Groups Projects
Commit 020f1402 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

aql2: allow completion on print command

parent e7cfd800
No related branches found
No related tags found
1 merge request!178Various fixes jt+mp
Pipeline #126085 passed with warnings
......@@ -95,7 +95,7 @@ ReadlinePromptCompletion::CompletionContext ReadlinePromptCompletion::context (
if ( p >= rl_line_buffer && ( *p == '|' || *p == '(' ) )
return CompletionContext::ALGORITHM;
 
if ( masterCommandCompletionTest ( line, start, "execute" ) )
if ( masterCommandCompletionTest ( line, start, "execute" ) || masterCommandCompletionTest ( line, start, "print" ) )
return CompletionContext::ALGORITHM;
 
/* undecided, fallback to filepath */
......
......@@ -64,7 +64,7 @@ class ReadlinePromptCompletion {
}
 
static std::set < std::string > fetchCommands ( const char *text ) {
return filter_completions ( { "execute", "introspect", "quit", "help", "set" }, text );
return filter_completions ( { "print", "execute", "introspect", "quit", "help", "set" }, text );
}
 
static std::set < std::string > fetchCommandsIntrospect ( const char *text ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment