diff options
Diffstat (limited to 'crates/ra_editor/src')
-rw-r--r-- | crates/ra_editor/src/line_index_utils.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/crates/ra_editor/src/line_index_utils.rs b/crates/ra_editor/src/line_index_utils.rs index 913ca5b15..632c962cc 100644 --- a/crates/ra_editor/src/line_index_utils.rs +++ b/crates/ra_editor/src/line_index_utils.rs | |||
@@ -270,9 +270,6 @@ pub fn translate_offset_with_edit( | |||
270 | Step::Newline(n) => { | 270 | Step::Newline(n) => { |
271 | if offset < *n { | 271 | if offset < *n { |
272 | return res.to_line_col(offset); | 272 | return res.to_line_col(offset); |
273 | } else if offset == *n { | ||
274 | res.add_line(*n); | ||
275 | return res.to_line_col(offset); | ||
276 | } else { | 273 | } else { |
277 | res.add_line(*n); | 274 | res.add_line(*n); |
278 | } | 275 | } |