We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 278e335 commit 5e13027Copy full SHA for 5e13027
core/document/src/layers/folder.rs
@@ -71,7 +71,7 @@ impl Folder {
71
let target_pos = self.position_of_layer(target_id)?;
72
73
let mut last_pos = source_pos;
74
- for layer_id in &source_ids[1..source_ids.len()] {
+ for layer_id in &source_ids[1..] {
75
let layer_pos = self.position_of_layer(*layer_id)?;
76
if (layer_pos as i32 - last_pos as i32).abs() > 1 {
77
// Selection is not contiguous
0 commit comments