ruby-changes:64236
From: Yale <ko1@a...>
Date: Thu, 17 Dec 2020 20:05:00 +0900 (JST)
Subject: [ruby-changes:64236] d597d7a8b6 (master): Fixing glitchy kill ring behavior in irb
https://git.ruby-lang.org/ruby.git/commit/?id=d597d7a8b6 From d597d7a8b6e753cfe40b8470c770f744adde5d4f Mon Sep 17 00:00:00 2001 From: Yale Kozinski <ytk@k...> Date: Mon, 23 Nov 2020 01:17:06 -0800 Subject: Fixing glitchy kill ring behavior in irb See https://github.com/ruby/irb/issues/85 for details diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index df4903c..65878fe 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -183,7 +183,7 @@ class Reline::LineEditor https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L183 @cleared = false @rerender_all = false @history_pointer = nil - @kill_ring = Reline::KillRing.new + @kill_ring ||= Reline::KillRing.new @vi_clipboard = '' @vi_arg = nil @waiting_proc = nil -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/