@@ -3447,7 +3447,12 @@ enum Paste {
3449fn paste_impl(values: &[String], doc: &mut Document, view: &mut View, action: Paste, count: usize) {
3449fn paste_impl(values: &[String], doc: &mut Document, view: &mut View, action: Paste, count: usize) {
3450+ if values.is_empty() {
3450 let repeat = std::iter::repeat(
3454 let repeat = std::iter::repeat(
3455+ // `values` is asserted to have at least one entry above.
3453 .map(|value| Tendril::from(value.repeat(count)))
3458 .map(|value| Tendril::from(value.repeat(count)))