Reverse output, so the most recent item added appears at the top

master
Stephen Cochrane 2 years ago
parent d0a590b9ca
commit 2e24b7751f
  1. 2
      clip

@ -50,7 +50,7 @@ paste()
if [ "$len" -gt 0 ]
then
dmenu -l "$len" < "$buffer" | tr "$delim" '\n' | xclip -r -selection clipboard
dmenu -l "$len" < <(tac "$buffer") | tr "$delim" '\n' | xclip -r -selection clipboard
else
printf 'Buffer is empty.\n'
return 1

Loading…
Cancel
Save