diff options
author | Blaž Hrastnik | 2021-08-24 14:43:05 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-08-26 00:21:07 +0000 |
commit | 9d4c3015632abba2ae6713874907825f6335b71a (patch) | |
tree | 02a28ed2b4418141e3a2598a531733e4506d275a /helix-core/src/state.rs | |
parent | 44a0512d951806cc98ab30ccc73009ba2631e42f (diff) |
Reduce State use a bit further
This is a legacy type that should be fully removed.
Diffstat (limited to 'helix-core/src/state.rs')
-rw-r--r-- | helix-core/src/state.rs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/helix-core/src/state.rs b/helix-core/src/state.rs index 7e4a7f70..dcc4b11b 100644 --- a/helix-core/src/state.rs +++ b/helix-core/src/state.rs @@ -1,6 +1,5 @@ use crate::{Rope, Selection}; -/// A state represents the current editor state of a single buffer. #[derive(Debug, Clone)] pub struct State { pub doc: Rope, @@ -15,27 +14,4 @@ impl State { selection: Selection::point(0), } } - - // update/transact: - // update(desc) => transaction ? transaction.doc() for applied doc - // transaction.apply(doc) - // doc.transact(fn -> ... end) - - // replaceSelection (transaction that replaces selection) - // changeByRange - // changes - // slice - // - // getters: - // tabSize - // indentUnit - // languageDataAt() - // - // config: - // indentation - // tabSize - // lineUnit - // syntax - // foldable - // changeFilter/transactionFilter } |