mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[ruby/reline] Disable dialog proc if TERM=dumb
(https://github.com/ruby/reline/pull/663)
4928e06a24
This commit is contained in:
parent
82f4cff1f3
commit
74593613ea
1 changed files with 4 additions and 2 deletions
|
@ -331,8 +331,10 @@ module Reline
|
|||
line_editor.auto_indent_proc = auto_indent_proc
|
||||
line_editor.dig_perfect_match_proc = dig_perfect_match_proc
|
||||
pre_input_hook&.call
|
||||
@dialog_proc_list.each_pair do |name_sym, d|
|
||||
line_editor.add_dialog_proc(name_sym, d.dialog_proc, d.context)
|
||||
unless Reline::IOGate == Reline::GeneralIO
|
||||
@dialog_proc_list.each_pair do |name_sym, d|
|
||||
line_editor.add_dialog_proc(name_sym, d.dialog_proc, d.context)
|
||||
end
|
||||
end
|
||||
|
||||
unless config.test_mode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue