From 7b109e615f468b39cc29fd0761c25cff8ad9024b Mon Sep 17 00:00:00 2001 From: Sebastian Gniazdowski Date: Tue, 11 Oct 2016 08:30:01 +0200 Subject: [PATCH] *highlight: Remove $PREBUFFER reference --- hsmw-highlight | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hsmw-highlight b/hsmw-highlight index afcfe47..e8f8097 100644 --- a/hsmw-highlight +++ b/hsmw-highlight @@ -183,7 +183,7 @@ typeset -gA HSMW_HIGHLIGHT_STYLES local -a options_to_set # used in callees local buf="$1" integer len="${#buf}" - integer pure_buf_len=$(( len - ${#PREBUFFER} )) # == $#BUFFER, used e.g. in *_check_path + integer pure_buf_len=len # historical, was $#BUFFER, i.e. len without $PREBUFFER; used e.g. in *_check_path local braces_stack # "R" for round, "Q" for square, "Y" for curly