mirror of https://github.com/dbcli/pgcli
Require prompt_toolkit>=2.0.6.
This commit is contained in:
parent
589c2abdfb
commit
94475e6283
|
@ -11,6 +11,7 @@ Internal:
|
|||
---------
|
||||
|
||||
* Clean up and add behave logging. (Thanks: `Dick Marinus`_)
|
||||
* Require prompt_toolkit>=2.0.6. (Thanks: `Dick Marinus`_)
|
||||
|
||||
|
||||
2.0.0:
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue