From 1d45cfe760d4e7569a8001778d7772523848889d Mon Sep 17 00:00:00 2001 From: Igor Murzov Date: Wed, 16 Nov 2011 23:37:09 +0300 Subject: __get_cword_at_cursor_by_ref: Drop unused cur2 variable. --- bash_completion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash_completion b/bash_completion index 4e91a7f2..0e83c9d6 100644 --- a/bash_completion +++ b/bash_completion @@ -303,7 +303,7 @@ __get_cword_at_cursor_by_ref() local cword words=() __reassemble_comp_words_by_ref "$1" words cword - local i cur cur2 index=$COMP_POINT lead=${COMP_LINE:0:$COMP_POINT} + local i cur index=$COMP_POINT lead=${COMP_LINE:0:$COMP_POINT} # Cursor not at position 0 and not leaded by just space(s)? if [[ $index -gt 0 && ( $lead && ${lead//[[:space:]]} ) ]]; then cur=$COMP_LINE -- cgit v1.2.1