diff options
author | Amjith Ramanujam <amjith.r@gmail.com> | 2015-05-24 17:00:43 -0700 |
---|---|---|
committer | Amjith Ramanujam <amjith.r@gmail.com> | 2015-05-24 17:00:43 -0700 |
commit | 7156d2d5df5922ed729957f98a8ca26adfa83f44 (patch) | |
tree | c0f66d5e9de3651b19614b7f5ef8972dbb2ac856 | |
parent | 637f41d8ed42e3acd908bd6d8cb7297b58f45ccf (diff) | |
parent | 83da9fb9e6a1907752fa1d913d25f2936206f8f0 (diff) |
Merge pull request #241 from fpietka/fix-editmode
Fix editor mode
-rwxr-xr-x | pgcli/main.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pgcli/main.py b/pgcli/main.py index d12d5f52..7ec2606c 100755 --- a/pgcli/main.py +++ b/pgcli/main.py @@ -183,9 +183,8 @@ class PGCli(object): if message: # Something went wrong. Raise an exception and bail. raise RuntimeError(message) - document = cli.read_input( - initial_document=Document(sql, cursor_position=len(sql)), - ) + cli.current_buffer.document = Document(sql, cursor_position=len(sql)) + document = cli.read_input(False) continue return document |