diff options
| author | Maxime Coste <mawww@kakoune.org> | 2021-05-18 20:46:55 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2021-05-18 20:50:56 +1000 |
| commit | 0cecea6593b95295058c355b61ffeb85d2c84333 (patch) | |
| tree | c1ef81bee00751165105fcb2f81e26f2dbc194af /src/command_manager.hh | |
| parent | ead12e11bdfc861c0f1decb9ff7e91582196fcfe (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.hh | 1 |
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 |
