summaryrefslogtreecommitdiffstats
path: root/changelog.rst
diff options
context:
space:
mode:
authorOwen Stephens <owen@owenstephens.co.uk>2019-10-13 01:07:57 +0100
committerOwen Stephens <owen@owenstephens.co.uk>2019-10-13 01:07:57 +0100
commit7f44748149be47cc42261ff73465a82eb7174eca (patch)
tree2c8a97c35645f29c42b3f6a99e95c2f5e6e4c2c6 /changelog.rst
parentd5cdd2ad4ea5c70dae766f2e00a71510e9c76b58 (diff)
Handle a multi-line query on Enter key-press (fixes #1031)
Use a (conditional) Enter key-binding to force-handle a multi-line buffer, rather than doing so by (conditionally) disabling the multiline mode of prompt_toolkit. This has the benefit of being more efficient (the multiline Condition filter is called very often, which (due to the repeated query parsing) causes editing to become slow with a large buffer that ends in a semicolon), clearer in intent (we want to force-handle the query, rather than (temporarily) disable multiline mode which indirectly forces the buffer to be handled) and avoids a bug in multi-line history search (issue #1031)
Diffstat (limited to 'changelog.rst')
-rw-r--r--changelog.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.rst b/changelog.rst
index 1ec7b729..e33fb00b 100644
--- a/changelog.rst
+++ b/changelog.rst
@@ -14,6 +14,7 @@ Bug fixes:
* Empty query caused error message (#1019) (Thanks: `Sebastian Janko`_)
* History navigation bindings in multiline queries (#1004) (Thanks: `Pedro Ferrari`_)
* Can't connect to pgbouncer database (#1093). (Thanks: `Irina Truong`_)
+* Fix broken multi-line history search (#1031). (Thanks: `Owen Stephens`_)
Internal:
---------