summaryrefslogtreecommitdiffstats
path: root/pgcli/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'pgcli/main.py')
-rw-r--r--pgcli/main.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/pgcli/main.py b/pgcli/main.py
index ce3e88aa..5d6ff89f 100644
--- a/pgcli/main.py
+++ b/pgcli/main.py
@@ -529,13 +529,10 @@ class PGCli(object):
raise RuntimeError(message)
while True:
try:
- text = self.prompt_app.prompt(
- default=sql,
- vi_mode=self.vi_mode
- )
+ text = self.prompt_app.prompt(default=sql)
break
except KeyboardInterrupt:
- sql = None
+ sql = ""
editor_command = special.editor_command(text)
return text
@@ -633,7 +630,7 @@ class PGCli(object):
try:
while True:
try:
- text = self.prompt_app.prompt(vi_mode=self.vi_mode)
+ text = self.prompt_app.prompt()
except KeyboardInterrupt:
continue