Skip to content

Commit

Permalink
reverse input order in command_prepend
Browse files Browse the repository at this point in the history
  • Loading branch information
dorianmariecom committed Sep 11, 2024
1 parent 4fa00b0 commit 5aa23d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dorian/bin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ def command_append
end

def command_prepend
outputs(map(everything.reject) { |input| lines(reads(input)) }.inject(&:+))
outputs(map(everything.reverse) { |input| lines(reads(input)) }.inject(&:+))
end

def command_select
Expand Down

0 comments on commit 5aa23d6

Please sign in to comment.