diff options
author | Jonathan Slenders <jonathan@slenders.be> | 2016-12-17 18:17:38 +0100 |
---|---|---|
committer | Jonathan Slenders <jonathan@slenders.be> | 2016-12-17 18:17:38 +0100 |
commit | 2f9b04e1750fc94d07df511e637e77b069a85753 (patch) | |
tree | a83ca63be713da0626389af10dc3c6dd3dc2572b | |
parent | 35b11f96ca20f6e2c9f71f0509bf0df59f9d9c74 (diff) |
Visual a quoted insert using '^', just like in Vi.
-rw-r--r-- | prompt_toolkit/layout/containers.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/prompt_toolkit/layout/containers.py b/prompt_toolkit/layout/containers.py index 1b58ea0e..0bdafe18 100644 --- a/prompt_toolkit/layout/containers.py +++ b/prompt_toolkit/layout/containers.py @@ -1046,6 +1046,8 @@ class Window(Container): def _get_digraph_char(self, cli): " Return `False`, or the Digraph symbol to be used. " + if cli.quoted_insert: + return '^' if cli.vi_state.waiting_for_digraph: if cli.vi_state.digraph_symbol1: return cli.vi_state.digraph_symbol1 |