Skip to content

Commit

Permalink
^K is kill-line and ^U is unix-line-discard for inputrc
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Sep 26, 2021
1 parent c30aeca commit 5936071
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/reline/line_editor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 5936071

Please sign in to comment.