From 0cecea6593b95295058c355b61ffeb85d2c84333 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 18 May 2021 20:46:55 +1000 Subject: 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 `%{}` 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 `}`. --- src/command_manager.hh | 1 + 1 file changed, 1 insertion(+) (limited to 'src/command_manager.hh') 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 -- cgit v1.2.3