|
|
@ -4,14 +4,9 @@ use helix_core::{
|
|
|
|
movement::{self, Direction},
|
|
|
|
movement::{self, Direction},
|
|
|
|
object, pos_at_coords,
|
|
|
|
object, pos_at_coords,
|
|
|
|
regex::{self, Regex},
|
|
|
|
regex::{self, Regex},
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
|
|
|
register::{self, Register, Registers},
|
|
|
|
register::{self, Register, Registers},
|
|
|
|
search, selection, Change, ChangeSet, Position, Range, Rope, RopeSlice, Selection, SmallVec,
|
|
|
|
search, selection, Change, ChangeSet, LineEnding, Position, Range, Rope, RopeSlice, Selection,
|
|
|
|
Tendril, Transaction,
|
|
|
|
SmallVec, Tendril, Transaction,
|
|
|
|
=======
|
|
|
|
|
|
|
|
register, search, selection, Change, ChangeSet, LineEnding, Position, Range, Rope, RopeSlice,
|
|
|
|
|
|
|
|
Selection, SmallVec, Tendril, Transaction,
|
|
|
|
|
|
|
|
>>>>>>> 856fd95 (trying out line ending helper functions in commands.rs)
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
use helix_view::{
|
|
|
|
use helix_view::{
|
|
|
@ -2285,15 +2280,10 @@ fn paste_impl(
|
|
|
|
.unwrap(),
|
|
|
|
.unwrap(),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
|
|
|
// if any of values ends \n it's linewise paste
|
|
|
|
|
|
|
|
let linewise = values.iter().any(|value| value.ends_with('\n'));
|
|
|
|
|
|
|
|
=======
|
|
|
|
|
|
|
|
// if any of values ends \n it's linewise paste
|
|
|
|
// if any of values ends \n it's linewise paste
|
|
|
|
let linewise = values
|
|
|
|
let linewise = values
|
|
|
|
.iter()
|
|
|
|
.iter()
|
|
|
|
.any(|value| value.ends_with(doc.line_ending()));
|
|
|
|
.any(|value| value.ends_with(doc.line_ending()));
|
|
|
|
>>>>>>> 856fd95 (trying out line ending helper functions in commands.rs)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let mut values = values.iter().cloned().map(Tendril::from).chain(repeat);
|
|
|
|
let mut values = values.iter().cloned().map(Tendril::from).chain(repeat);
|
|
|
|
|
|
|
|
|
|
|
|