[前][次][番号順一覧][スレッド一覧]

ruby-changes:62626

From: aycabta <ko1@a...>
Date: Tue, 18 Aug 2020 19:16:12 +0900 (JST)
Subject: [ruby-changes:62626] ad24eaabfd (master): [ruby/reline] Remove duplicated line of code

https://git.ruby-lang.org/ruby.git/commit/?id=ad24eaabfd

From ad24eaabfda6e6892f81c962ee3d75dcc58a8f95 Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Wed, 29 Jul 2020 22:34:38 +0900
Subject: [ruby/reline] Remove duplicated line of code

Co-authored-by: Quentin Sabah <quentin.sabah@g...>

https://github.com/ruby/reline/commit/5526e9f7ee

diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index 8127881..4eee4bd 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -2345,7 +2345,6 @@ class Reline::LineEditor https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L2345
     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
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]