parent
6a3b1d99b5
commit
23d1132526
1 changed files with 4 additions and 0 deletions
|
@ -32,6 +32,10 @@ pub fn init(matches: &clap::ArgMatches) -> Result<(), Error> {
|
||||||
match readline {
|
match readline {
|
||||||
// The user typed a query
|
// The user typed a query
|
||||||
Ok(line) => {
|
Ok(line) => {
|
||||||
|
// Ignore all empty lines
|
||||||
|
if line.is_empty() {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
// Add the entry to the history
|
// Add the entry to the history
|
||||||
rl.add_history_entry(line.as_str());
|
rl.add_history_entry(line.as_str());
|
||||||
// Make a new remote request
|
// Make a new remote request
|
||||||
|
|
Loading…
Reference in a new issue