summaryrefslogtreecommitdiff
path: root/src/command_manager.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2021-05-18 20:46:55 +1000
committerMaxime Coste <mawww@kakoune.org>2021-05-18 20:50:56 +1000
commit0cecea6593b95295058c355b61ffeb85d2c84333 (patch)
treec1ef81bee00751165105fcb2f81e26f2dbc194af /src/command_manager.hh
parentead12e11bdfc861c0f1decb9ff7e91582196fcfe (diff)
Fix completion past explicitely closed tokens
This fixes an issue where completion would still be provided after the closing character of a token, which could then get frustrating combined with auto-insertion of completions. For example, inserting `%{<newline>}` for a command-completed token (such as the commands for a hook) would still trigger completion right after the `}` and that completion would get auto-inserted **replacing** that closing `}`.
Diffstat (limited to 'src/command_manager.hh')
-rw-r--r--src/command_manager.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/command_manager.hh b/src/command_manager.hh
index ffd14524..457b2a91 100644
--- a/src/command_manager.hh
+++ b/src/command_manager.hh
@@ -59,6 +59,7 @@ struct Token
ByteCount pos;
BufferCoord coord;
String content;
+ bool terminated = false;
};
struct Reader