From 5aa23d6f2a47aab61dc6b7fae6d5089029329630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dorian=20Mari=C3=A9?= Date: Wed, 11 Sep 2024 21:30:47 +0200 Subject: [PATCH] reverse input order in command_prepend --- lib/dorian/bin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dorian/bin.rb b/lib/dorian/bin.rb index c8f3a5a..0f3b929 100644 --- a/lib/dorian/bin.rb +++ b/lib/dorian/bin.rb @@ -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