Skip to content

Commit 4e70b17

Browse files
st0012ko1
authored andcommittedOct 10, 2023
Drop patch for Reline 0.2.7
The original issue in Reline has been fixed in ruby/reline#358 and was released in Reline 0.2.8+. Consider `debug` currently requires Reline 0.3.8+, we won't need this patch anymore.
1 parent 840d8ad commit 4e70b17

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed
 

‎lib/debug/console.rb

+1-22
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,9 @@ class Console
55
raise LoadError if CONFIG[:no_reline]
66
require 'reline'
77

8-
# reline 0.2.7 or later is required.
9-
raise LoadError if Reline::VERSION < '0.2.7'
10-
118
require_relative 'color'
12-
include Color
13-
14-
begin
15-
prev = trap(:SIGWINCH, nil)
16-
trap(:SIGWINCH, prev)
17-
SIGWINCH_SUPPORTED = true
18-
rescue ArgumentError
19-
SIGWINCH_SUPPORTED = false
20-
end
219

22-
# 0.2.7 has SIGWINCH issue on non-main thread
23-
class ::Reline::LineEditor
24-
m = Module.new do
25-
def reset(prompt = '', encoding:)
26-
super
27-
Signal.trap(:SIGWINCH, nil)
28-
end
29-
end
30-
prepend m
31-
end if SIGWINCH_SUPPORTED
10+
include Color
3211

3312
def parse_input buff, commands
3413
c, rest = get_command buff

0 commit comments

Comments
 (0)
Please sign in to comment.