зеркало из https://github.com/github/ruby.git
52ff2ce9da
* Test existing behavior Typing Ctrl-D ends editing but typing <Del> does not. Also renamed a test that is not testing ed_delete_next_char but key_delete. * Check if line empty first in em_delete By distributivity of AND over OR, we can factor out this condition. This will make the next commit simpler. * Use em_delete in key_delete When the editing mode is emacs, use `em_delete` in `key_delete`. We need to add a condition though to `em_delete`, because it implements both `delete-char` and `end-of-file`. We only want the `end-of-file` behavior is the key is really Ctrl-D. This matches the behavior of the <Del> key with readline, i.e. deleting the next character if there is one, but not moving the cursor, while not finishing the editing if there are no characters. |
||
---|---|---|
.. | ||
windows | ||
yamatanooroti | ||
helper.rb | ||
test_ansi_with_terminfo.rb | ||
test_ansi_without_terminfo.rb | ||
test_config.rb | ||
test_history.rb | ||
test_key_actor_emacs.rb | ||
test_key_actor_vi.rb | ||
test_key_stroke.rb | ||
test_kill_ring.rb | ||
test_macro.rb | ||
test_reline.rb | ||
test_reline_key.rb | ||
test_string_processing.rb | ||
test_terminfo.rb | ||
test_unicode.rb | ||
test_within_pipe.rb |