diff options
author | aycabta <aycabta@gmail.com> | 2021-02-16 01:46:53 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2021-02-21 06:43:31 +0900 |
commit | 7aa3bc84039a1b5d9ddfc491ca32753346163dd6 (patch) | |
tree | 1b3978b2e02706ef15ad5277d3e38ec513a6764d /test/reline/yamatanooroti/multiline_repl | |
parent | a3055a35dd7b8b6520d5fe599d1c67490c556a3c (diff) |
[ruby/reline] Add a test for suppressing crash when dynamic prompt returns empty
ref. https://github.com/ruby/reline/pull/262
https://github.com/ruby/reline/commit/b98bc3c329
Diffstat (limited to 'test/reline/yamatanooroti/multiline_repl')
-rwxr-xr-x | test/reline/yamatanooroti/multiline_repl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/reline/yamatanooroti/multiline_repl b/test/reline/yamatanooroti/multiline_repl index f48c1cfbd9..f2efdd4eaf 100755 --- a/test/reline/yamatanooroti/multiline_repl +++ b/test/reline/yamatanooroti/multiline_repl @@ -24,6 +24,9 @@ opt.on('--broken-dynamic-prompt') { } } } +opt.on('--dynamic-prompt-returns-empty') { + Reline.prompt_proc = proc { |l| [] } +} opt.on('--auto-indent') { AutoIndent.new } |