Skip to content

Commit

Permalink
Add comment about last_event_is_char
Browse files Browse the repository at this point in the history
  • Loading branch information
p1gp1g committed Feb 5, 2023
1 parent c5eee47 commit 6053b56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helix-view/src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,8 @@ pub struct Editor {
pub next_document_id: DocumentId,
pub documents: BTreeMap<DocumentId, Document>,

// 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<>.
Expand Down

0 comments on commit 6053b56

Please sign in to comment.