Skip to content

Commit

Permalink
Fixing glitchy kill ring behavior in irb
Browse files Browse the repository at this point in the history
See ruby/irb#85 for details
  • Loading branch information
kozinski authored and aycabta committed Dec 17, 2020
1 parent da3438a commit d597d7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reline/line_editor.rb
Expand Up @@ -183,7 +183,7 @@ def reset_variables(prompt = '', encoding:)
@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
Expand Down

0 comments on commit d597d7a

Please sign in to comment.