diff options
Diffstat (limited to 'helix-core/src/transaction.rs')
-rw-r--r-- | helix-core/src/transaction.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/helix-core/src/transaction.rs b/helix-core/src/transaction.rs index 7fbcbf6c..3d03de19 100644 --- a/helix-core/src/transaction.rs +++ b/helix-core/src/transaction.rs @@ -339,6 +339,11 @@ impl Transaction { true } + pub fn with_selection(mut self, selection: Selection) -> Self { + self.selection = Some(selection); + self + } + /// Generate a transaction from a set of changes. // TODO: take an owned iter instead of Vec pub fn change(state: &State, changes: Vec<Change>) -> Self { |