aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorJan Hrastnik2021-06-16 15:22:55 +0000
committerJan Hrastnik2021-06-16 15:22:55 +0000
commit9c3eadb2e4fd297abcc8ceb02b3088ab3b9b1ceb (patch)
tree7003028a66d30cadf14c997bf7c6fa9986f10044 /helix-term/src
parent7cf0fa05a4ca6bf62d38836f3aa99a1ac585a261 (diff)
fixed some problems from rebasing
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/commands.rs22
1 files changed, 6 insertions, 16 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 31e80345..644c2e23 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -4,14 +4,9 @@ use helix_core::{
movement::{self, Direction},
object, pos_at_coords,
regex::{self, Regex},
-<<<<<<< HEAD
register::{self, Register, Registers},
- search, selection, Change, ChangeSet, Position, Range, Rope, RopeSlice, Selection, 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)
+ search, selection, Change, ChangeSet, LineEnding, Position, Range, Rope, RopeSlice, Selection,
+ SmallVec, Tendril, Transaction,
};
use helix_view::{
@@ -348,7 +343,7 @@ where
KeyEvent {
code: KeyCode::Enter,
..
- } => '\n',
+ } => '\n',
KeyEvent {
code: KeyCode::Char(ch),
..
@@ -2285,15 +2280,10 @@ fn paste_impl(
.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
- let linewise = values
- .iter()
- .any(|value| value.ends_with(doc.line_ending()));
->>>>>>> 856fd95 (trying out line ending helper functions in commands.rs)
+ let linewise = values
+ .iter()
+ .any(|value| value.ends_with(doc.line_ending()));
let mut values = values.iter().cloned().map(Tendril::from).chain(repeat);