[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.90-47-g068a1a1

Igor Murzov e-mail at date.by
Wed Nov 16 20:21:44 UTC 2011


The following commit has been merged in the master branch:
commit 1d45cfe760d4e7569a8001778d7772523848889d
Author: Igor Murzov <e-mail at date.by>
Date:   Wed Nov 16 23:37:09 2011 +0300

    __get_cword_at_cursor_by_ref: Drop unused cur2 variable.

diff --git a/bash_completion b/bash_completion
index 4e91a7f..0e83c9d 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

-- 
bash-completion



More information about the Bash-completion-commits mailing list