Skip to content

Commit e6dbcb3

Browse files
kozinskiaycabta
authored andcommitted
Fixing glitchy kill ring behavior in irb
See ruby/irb#85 for details
1 parent 7ca5179 commit e6dbcb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/reline/line_editor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def reset_variables(prompt = '', encoding:)
185185
@cleared = false
186186
@rerender_all = false
187187
@history_pointer = nil
188-
@kill_ring = Reline::KillRing.new
188+
@kill_ring ||= Reline::KillRing.new
189189
@vi_clipboard = ''
190190
@vi_arg = nil
191191
@waiting_proc = nil

0 commit comments

Comments
 (0)