LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File otp_src_18.1.1-lib-stdlib-edlin.patch of Package erlang (Project home:Ledest:erlang:20)

diff -Ndur otp_src_18.1.1/lib/stdlib/src/edlin.erl otp_src_18.1.1-lib-stdlib-edlin/lib/stdlib/src/edlin.erl
--- otp_src_18.1.1/lib/stdlib/src/edlin.erl	2015-10-05 12:01:02.000000000 +0300
+++ otp_src_18.1.1-lib-stdlib-edlin/lib/stdlib/src/edlin.erl	2015-10-13 03:30:48.331486794 +0300
@@ -244,6 +244,10 @@
 key_map($D, {csi, "5"})  -> backward_word;
 key_map($D, {csi, "1;5"}) -> backward_word;
 key_map($;, {csi, "1"}) -> {csi, "1;"};
+% support a <Ctrl>+<Delete>
+key_map($;, {csi, "3"}) -> {csi, "3;"};
+key_map($5, {csi, "3;"}) -> {csi, "3;5"};
+key_map($~, {csi, "3;5"}) -> kill_word;
 key_map(C, none) when C >= $\s ->
     {insert,C};
 %% for search, we need smarter line handling and so