From bd0dfb88fdf5714833466787fd73edaff9740a73 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Mar 2021 20:03:25 +0100 Subject: Merging upstream version 1.6.0. Signed-off-by: Daniel Baumann --- litecli/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'litecli/main.py') diff --git a/litecli/main.py b/litecli/main.py index 5768851..24b1bb4 100644 --- a/litecli/main.py +++ b/litecli/main.py @@ -704,8 +704,7 @@ class LiteCli(object): ] def _on_completions_refreshed(self, new_completer): - """Swap the completer object in cli with the newly created completer. - """ + """Swap the completer object in cli with the newly created completer.""" with self._completer_lock: self.completer = new_completer @@ -725,6 +724,7 @@ class LiteCli(object): sqlexecute = self.sqlexecute now = datetime.now() string = string.replace("\\d", sqlexecute.dbname or "(none)") + string = string.replace("\\f", os.path.basename(sqlexecute.dbname or "(none)")) string = string.replace("\\n", "\n") string = string.replace("\\D", now.strftime("%a %b %d %H:%M:%S %Y")) string = string.replace("\\m", now.strftime("%M")) -- cgit v1.2.3