summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomoya ishida <[email protected]>2024-03-24 22:04:30 +0900
committergit <[email protected]>2024-03-24 13:04:33 +0000
commit74593613ea399518d6f72cb9ca330efbfcf719cb ()
tree89a93908a5be08cb4738c2708e896706e04f8d6c
parent82f4cff1f39d5f2c762f8cf61f079e318066e44e (diff)
[ruby/reline] Disable dialog proc if TERM=dumb
(https://.com/ruby/reline/pull/663) https://.com/ruby/reline/commit/4928e06a24
-rw-r--r--lib/reline.rb6
1 files changed, 4 insertions, 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)
end
unless config.test_mode