1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix return condition according to the condition to skip

This commit is contained in:
aycabta 2019-12-17 13:30:54 +09:00
parent a1713bedb1
commit 64ce658ec5

View file

@ -631,7 +631,7 @@ module BasetestReadline
assert_equal('abcde!', line) assert_equal('abcde!', line)
ensure ensure
return if /EditLine/n.match(Readline::VERSION) return if /EditLine/n.match(Readline::VERSION)
return if defined?(Reline) and Readline == Reline return unless Readline.respond_to?(:completion_append_character=)
Readline.completion_append_character = append_character Readline.completion_append_character = append_character
end end