diff options
author | aycabta <aycabta@gmail.com> | 2021-09-27 04:39:44 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-09-28 14:15:49 +0900 |
commit | c4acde8959c898f4ed50bd8b76f4a026397cbc8b (patch) | |
tree | 616750270b9a5340cb3361b18c2707e952500c86 /lib/reline/line_editor.rb | |
parent | 1e9a688cd55d825d8c77c74c62d4b642ef492659 (diff) | |
download | ruby-c4acde8959c898f4ed50bd8b76f4a026397cbc8b.tar.gz |
[ruby/reline] Ignore NUL by ed_quoted_insert
https://github.com/ruby/reline/commit/43b7c01a98
Diffstat (limited to 'lib/reline/line_editor.rb')
-rw-r--r-- | lib/reline/line_editor.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 71b56b4c3b..71cca85ad0 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -1975,6 +1975,8 @@ class Reline::LineEditor arg.times do if key == "\C-j".ord or key == "\C-m".ord key_newline(key) + elsif key == 0 + # Ignore NUL. else ed_insert(key) end |