This commit is contained in:
Antonio Scandurra 2021-04-14 11:59:39 +02:00
parent 6a181ac692
commit a1053f7820

View file

@ -562,8 +562,8 @@ impl BufferView {
} else if clipboard_selections.len() == 1 && clipboard_selections[0].is_entire_line } else if clipboard_selections.len() == 1 && clipboard_selections[0].is_entire_line
{ {
// If there was only one selection in the clipboard but it spanned the whole // If there was only one selection in the clipboard but it spanned the whole
// line, then paste it over and over into each of the current selections so that // line, then paste it into each of the current selections so that we can
// we can position it before the selections that are empty. // position it before those selections that are empty.
self.multiline_paste( self.multiline_paste(
clipboard_text.chars().cycle(), clipboard_text.chars().cycle(),
clipboard_selections.iter().cycle(), clipboard_selections.iter().cycle(),