clipmenu

Simple clipboard management using dmenu
git clone https://git.sinitax.com/cdown/clipmenu
Log | Files | Refs | README | LICENSE | sfeed.txt

commit a090177497c957ea3e3f2df8941ae2626a6123f5
parent b4d001149c6b84c592c3492602fbc5e7ab1e5afb
Author: Chris Down <chris@chrisdown.name>
Date:   Mon, 23 Mar 2020 17:40:13 +0000

get_first_line: We never set line_length_limit, just make it static

Diffstat:
Mclipmenud | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/clipmenud b/clipmenud @@ -43,11 +43,10 @@ make_line_cksums() { while read -r line; do cksum <<< "${line#* }"; done; } get_first_line() { data=${1?} - line_length_limit=${2-300} # We look for the first line matching regex /./ here because we want the # first line that can provide reasonable context to the user. - awk -v limit="$line_length_limit" ' + awk -v limit=300 ' BEGIN { printed = 0; } printed == 0 && NF {