summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Murzov <e-mail@date.by>2011-11-16 23:37:09 +0300
committerIgor Murzov <e-mail@date.by>2011-11-16 23:37:09 +0300
commit1d45cfe760d4e7569a8001778d7772523848889d (patch)
treec6de21b8b2f2320861587d817cf626a987f93e9b
parent9ab064fb1785d828b6d93a27b9326b6ba156ecaa (diff)
downloadbash-completion-1d45cfe760d4e7569a8001778d7772523848889d.tar.gz
__get_cword_at_cursor_by_ref: Drop unused cur2 variable.
-rw-r--r--bash_completion2
1 files changed, 1 insertions, 1 deletions
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