diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-09-20 15:46:57 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-09-20 15:46:57 +0000 |
commit | 917739023a7acaae3645bbfd27ed454df3c5be33 (patch) | |
tree | 4e205849ae64ccd4d1797a1ad7579416f69f52ee /pgcli/pgbuffer.py | |
parent | Adding upstream version 3.4.1. (diff) | |
download | pgcli-917739023a7acaae3645bbfd27ed454df3c5be33.tar.xz pgcli-917739023a7acaae3645bbfd27ed454df3c5be33.zip |
Adding upstream version 3.5.0.upstream/3.5.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pgcli/pgbuffer.py')
-rw-r--r-- | pgcli/pgbuffer.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pgcli/pgbuffer.py b/pgcli/pgbuffer.py index 706ed25..c236c13 100644 --- a/pgcli/pgbuffer.py +++ b/pgcli/pgbuffer.py @@ -22,6 +22,17 @@ mode, which by default will insert new lines on Enter. """ +def safe_multi_line_mode(pgcli): + @Condition + def cond(): + _logger.debug( + 'Multi-line mode state: "%s" / "%s"', pgcli.multi_line, pgcli.multiline_mode + ) + return pgcli.multi_line and (pgcli.multiline_mode == "safe") + + return cond + + def buffer_should_be_handled(pgcli): @Condition def cond(): |