From 8d9b92f092e043b6198a810bec2614482e8c4580 Mon Sep 17 00:00:00 2001 From: sim Date: Sun, 5 Feb 2023 16:59:27 +0100 Subject: [PATCH] Add comment about last_event_is_char --- helix-view/src/editor.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index 8efc557b5a12..6b309f450a2f 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -881,6 +881,8 @@ pub struct Editor { pub next_document_id: DocumentId, pub documents: BTreeMap, + // To know if the user is currently inserting chars or moving in Insert Mode + // https://github.com/helix-editor/helix/pull/5803 pub last_event_is_char: bool, // We Flatten<> to resolve the inner DocumentSavedEventFuture. For that we need a stream of streams, hence the Once<>.