From 64ce658ec5a6d6fc6eb969f607e703fd9372287a Mon Sep 17 00:00:00 2001 From: aycabta Date: Tue, 17 Dec 2019 13:30:54 +0900 Subject: [PATCH] Fix return condition according to the condition to skip --- test/readline/test_readline.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/readline/test_readline.rb b/test/readline/test_readline.rb index a343939f59..be9ac24d25 100644 --- a/test/readline/test_readline.rb +++ b/test/readline/test_readline.rb @@ -631,7 +631,7 @@ module BasetestReadline assert_equal('abcde!', line) ensure 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 end