diff options
author | aycabta <aycabta@gmail.com> | 2021-10-03 15:22:47 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-10-03 15:25:50 +0900 |
commit | bc5407f00c3898f7cd6f0b010b396532b4b4c3af (patch) | |
tree | e3945af7c8b6b093236544f0aa61422519a5db90 /lib/reline/line_editor.rb | |
parent | d31279fe6f54f0d9571c978912c3fb566c8abd45 (diff) | |
download | ruby-bc5407f00c3898f7cd6f0b010b396532b4b4c3af.tar.gz |
[ruby/reline] Add doc for ed-unassigned and ed-insert macro
https://github.com/ruby/reline/commit/7fe9ecf945
Diffstat (limited to 'lib/reline/line_editor.rb')
-rw-r--r-- | lib/reline/line_editor.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 85807ccf07..e4f80c88d8 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -1924,6 +1924,8 @@ class Reline::LineEditor end end + # Editline:: +ed-unassigned+ This editor command always results in an error. + # GNU Readline:: There is no corresponding macro. private def ed_unassigned(key) end # do nothing private def process_insert(force: false) @@ -1941,6 +1943,19 @@ class Reline::LineEditor @continuous_insertion_buffer.clear end + # Editline:: +ed-insert+ (vi input: almost all; emacs: printable characters) + # In insert mode, insert the input character left of the cursor + # position. In replace mode, overwrite the character at the + # cursor and move the cursor to the right by one character + # position. Accept an argument to do this repeatedly. It is an + # error if the input character is the NUL character (Ctrl-@). + # Failure to enlarge the edit buffer also results in an error. + # Editline:: +ed-digit+ (emacs: 0 to 9) If in argument input mode, append + # the input digit to the argument being read. Otherwise, call + # +ed-insert+. It is an error if the input character is not a + # digit or if the existing argument is already greater than a + # million. + # GNU Readline:: +self-insert+ (a, b, A, 1, !, …) Insert yourself. private def ed_insert(key) str = nil width = nil |