diff options
author | Jan Hrastnik | 2021-06-16 14:57:47 +0000 |
---|---|---|
committer | Jan Hrastnik | 2021-06-16 15:13:44 +0000 |
commit | 7cf0fa05a4ca6bf62d38836f3aa99a1ac585a261 (patch) | |
tree | 76f4c65fddc1a6db7b6e977f7fbe1ab2ce8b3edc /helix-term | |
parent | a4f5a0134e308ffad318ab6920fe1ed0264a93cb (diff) |
doc.line_ending() now returns &'static str
Diffstat (limited to 'helix-term')
-rw-r--r-- | helix-term/src/commands.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 144e1f3c..31e80345 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -348,7 +348,7 @@ where KeyEvent { code: KeyCode::Enter, .. - } => '\n', // TODO: we should be calling doc.line_ending() here + } => '\n', KeyEvent { code: KeyCode::Char(ch), .. @@ -476,7 +476,7 @@ pub fn replace(cx: &mut Context) { KeyEvent { code: KeyCode::Enter, .. - } => Some('\n'), // TODO: we should be calling doc.line_ending() here + } => Some('\n'), _ => None, }; |