summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2020-07-29 22:34:38 +0900
committeraycabta <aycabta@gmail.com>2020-08-18 19:08:50 +0900
commitad24eaabfda6e6892f81c962ee3d75dcc58a8f95 (patch)
tree1cfa0adc837174bae0a0197c818e442d97c0ee46 /lib
parent80a7358cfcafa9748c232be851e5f70bede32acb (diff)
[ruby/reline] Remove duplicated line of code
Co-authored-by: Quentin Sabah <quentin.sabah@gmail.com> https://github.com/ruby/reline/commit/5526e9f7ee
Diffstat (limited to 'lib')
-rw-r--r--lib/reline/line_editor.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index 81278810a0..4eee4bd632 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -2345,7 +2345,6 @@ class Reline::LineEditor
new_pointer = [@byte_pointer, @line_index]
@previous_line_index = @line_index
@byte_pointer, @line_index = @mark_pointer
- @byte_pointer, @line_index = @mark_pointer
@cursor = calculate_width(@line.byteslice(0, @byte_pointer))
@cursor_max = calculate_width(@line)
@mark_pointer = new_pointer