From 10f0ffe6cb8901406366738fdc572c7fa89509db Mon Sep 17 00:00:00 2001 From: Chris Down Date: Fri, 7 Aug 2015 18:29:26 +0100 Subject: [PATCH] Remove CLIPMENU_LINES support You can just pass this as `-l`, I don't remember why I did this. --- clipmenu | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/clipmenu b/clipmenu index 7267c06..71cdc8d 100755 --- a/clipmenu +++ b/clipmenu @@ -2,8 +2,6 @@ LC_COLLATE=C -dmenu_lines=${CLIPMENU_LINES-8} - declare -A selections ordered_selections=() @@ -26,8 +24,7 @@ for (( i=${#files[@]}-1; i>=0; i-- )); do done chosen_line=$( - printf '%s\n' "${ordered_selections[@]}" | - awk '!x[$0]++' | dmenu -l "$dmenu_lines" "$@" + printf '%s\n' "${ordered_selections[@]}" | awk '!x[$0]++' | dmenu "$@" ) [[ $chosen_line ]] || exit 1