diff options
author | Pascal Kuthe | 2022-11-28 02:20:54 +0000 |
---|---|---|
committer | GitHub | 2022-11-28 02:20:54 +0000 |
commit | da355a3231174ac019b43a31958b73e818e6463f (patch) | |
tree | 4e875531ebca33f6b7306bd537a44a90cc0e7e31 /helix-core/src/transaction.rs | |
parent | a549328ef29b9f0911b04e9517bf55962d32dea2 (diff) |
Significantly improve performance of `:reload` (#4457)
* bump ropey to 1.5.1-alpha
* significantly improve performance of :reload
Diffstat (limited to 'helix-core/src/transaction.rs')
-rw-r--r-- | helix-core/src/transaction.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/helix-core/src/transaction.rs b/helix-core/src/transaction.rs index 3fb39413..482fd6d9 100644 --- a/helix-core/src/transaction.rs +++ b/helix-core/src/transaction.rs @@ -56,7 +56,7 @@ impl ChangeSet { } // Changeset builder operations: delete/insert/retain - fn delete(&mut self, n: usize) { + pub(crate) fn delete(&mut self, n: usize) { use Operation::*; if n == 0 { return; @@ -71,7 +71,7 @@ impl ChangeSet { } } - fn insert(&mut self, fragment: Tendril) { + pub(crate) fn insert(&mut self, fragment: Tendril) { use Operation::*; if fragment.is_empty() { @@ -93,7 +93,7 @@ impl ChangeSet { self.changes.push(new_last); } - fn retain(&mut self, n: usize) { + pub(crate) fn retain(&mut self, n: usize) { use Operation::*; if n == 0 { return; |