aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/textinput.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/textinput.rs')
-rw-r--r--components/script/textinput.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/components/script/textinput.rs b/components/script/textinput.rs
index 87bdd1d6345..c12c277c9f2 100644
--- a/components/script/textinput.rs
+++ b/components/script/textinput.rs
@@ -295,9 +295,7 @@ impl<T: ClipboardProvider> TextInput<T> {
fn assert_ok_selection(&self) {
debug!(
"edit_point: {:?}, selection_origin: {:?}, direction: {:?}",
- self.edit_point,
- self.selection_origin,
- self.selection_direction
+ self.edit_point, self.selection_origin, self.selection_direction
);
if let Some(begin) = self.selection_origin {
debug_assert!(begin.line < self.lines.len());
@@ -532,8 +530,7 @@ impl<T: ClipboardProvider> TextInput<T> {
fn update_selection_direction(&mut self) {
debug!(
"edit_point: {:?}, selection_origin: {:?}",
- self.edit_point,
- self.selection_origin
+ self.edit_point, self.selection_origin
);
self.selection_direction = if Some(self.edit_point) < self.selection_origin {
SelectionDirection::Backward