Skip to content

Commit

Permalink
Add doc about em-kill-line macro
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Sep 26, 2021
1 parent 9fca6ce commit 2e46493
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/reline/line_editor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2552,6 +2552,10 @@ def finish
end
alias_method :unix_line_discard, :vi_kill_line_prev

# Editline:: +em-kill-line+ (not bound) Delete the entire contents of the
# edit buffer and save it to the cut buffer. +vi-kill-line-prev+
# GNU Readline:: +kill-whole-line+ (not bound) Kill all characters on the
# current line, no matter where point is.
private def em_kill_line(key)
if @line.size > 0
@kill_ring.append(@line.dup, true)
Expand Down

0 comments on commit 2e46493

Please sign in to comment.