diff options
author | Steve Vinoski <[email protected]> | 2014-10-01 10:07:03 -0400 |
---|---|---|
committer | Steve Vinoski <[email protected]> | 2014-10-01 10:07:03 -0400 |
commit | 81094cfd7b80a0cfe80f88c8fecb394744ceb90f (patch) | |
tree | 5a2660cb95acec07f6942be01c5099170122074a /lib/kernel/test | |
parent | 86ae7ccc44b38137c504a46b619ffad935d74b99 (diff) | |
download | otp-81094cfd7b80a0cfe80f88c8fecb394744ceb90f.tar.gz otp-81094cfd7b80a0cfe80f88c8fecb394744ceb90f.tar.bz2 otp-81094cfd7b80a0cfe80f88c8fecb394744ceb90f.zip |
Make shell ctrl-u save killed text correctly
Fix edlin to correctly save text killed with ctrl-u. Prior to this fix,
entering text into the Erlang shell and then killing it with ctrl-u
followed by yanking it back with ctrl-y would result in the yanked text
being the reverse of the original killed text.
Add a test for the fix to interactive_shell_SUITE.
(This is the same fix as in PR#416, but that PR was never completed.)
Diffstat (limited to 'lib/kernel/test')
-rw-r--r-- | lib/kernel/test/interactive_shell_SUITE.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/kernel/test/interactive_shell_SUITE.erl b/lib/kernel/test/interactive_shell_SUITE.erl index a375adceea..7f6024f642 100644 --- a/lib/kernel/test/interactive_shell_SUITE.erl +++ b/lib/kernel/test/interactive_shell_SUITE.erl @@ -296,6 +296,7 @@ ctrl_keys(doc) -> ["Tests various control keys"]; ctrl_keys(_Conf) when is_list(_Conf) -> Cu=[$\^u], Cw=[$\^w], + Cy=[$\^y], Home=[27,$O,$H], End=[27,$O,$F], rtnode([{putline,""}, @@ -308,6 +309,8 @@ ctrl_keys(_Conf) when is_list(_Conf) -> {putline,"world\"."++Home++"\"hello "}, % test <HOME> {getline,"\"hello world\""}, {putline,"world"++Home++"\"hello "++End++"\"."}, % test <END> + {getline,"\"hello world\""}, + {putline,"\"hello world\""++Cu++Cy++"."}, {getline,"\"hello world\""}] ++wordLeft()++wordRight(),[]). |