diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 10ff766dcc..71b56b4c3b 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -2529,6 +2529,7 @@ def finish @rest_height += 1 end end + alias_method :kill_line, :ed_kill_line private def em_kill_line(key) if @byte_pointer > 0 @@ -2539,7 +2540,7 @@ def finish @cursor = 0 end end - alias_method :kill_line, :em_kill_line + alias_method :unix_line_discard, :em_kill_line alias_method :vi_kill_line_prev, :em_kill_line private def em_delete(key)