aboutsummaryrefslogtreecommitdiff
path: root/rprt-engine/src/selection_functions/result_transformation.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rprt-engine/src/selection_functions/result_transformation.rs')
-rw-r--r--rprt-engine/src/selection_functions/result_transformation.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rprt-engine/src/selection_functions/result_transformation.rs b/rprt-engine/src/selection_functions/result_transformation.rs
index 865038c..c150916 100644
--- a/rprt-engine/src/selection_functions/result_transformation.rs
+++ b/rprt-engine/src/selection_functions/result_transformation.rs
@@ -20,7 +20,7 @@ pub fn complement_transform(es: &EditorState, result: Selection) -> SFResult {
if pos + 1 < max_pos {
ranges.push(Interval::new(pos + 1, max_pos));
}
- Ok(Selection::Ranges { buffer_id, ranges })
+ Ok(Selection::Vectors { buffer_id, ranges })
} else {
Err(SFError::BufferNotFound(buffer_id))
}
@@ -48,7 +48,7 @@ pub fn complement_transform(es: &EditorState, result: Selection) -> SFResult {
ranges.push(Interval::new(0, interval.start));
ranges.push(Interval::new(interval.end, max_pos));
}
- Ok(Selection::Ranges { buffer_id, ranges })
+ Ok(Selection::Vectors { buffer_id, ranges })
} else {
Err(SFError::BufferNotFound(buffer_id))
}