mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
parent
feeedfd4a0
commit
b4f32b56bb
@ -271,9 +271,6 @@ impl StackView {
|
|||||||
|
|
||||||
let removed = self.layers.remove(from_i);
|
let removed = self.layers.remove(from_i);
|
||||||
|
|
||||||
// Shift the position if needed
|
|
||||||
let to_i = if to_i > from_i { to_i - 1 } else { to_i };
|
|
||||||
|
|
||||||
self.layers.insert(to_i, removed);
|
self.layers.insert(to_i, removed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user