[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.90-163-g8b3f19a
Igor Murzov
e-mail at date.by
Wed Apr 18 13:43:37 UTC 2012
The following commit has been merged in the master branch:
commit 8b3f19a82e60c725f8588a91b1679dde4b1b1967
Author: Jonathan Nieder <jrnieder at gmail.com>
Date: Tue Apr 17 13:52:02 2012 -0500
ri: Rename ri_get_methods helper to add leading underscore
Completions generally name the identifiers they export with a leading
'_' to avoid clashing with user functions. The only exception is this
helper function in the "ri" completion script; fix it.
Reported-by: Felipe Contreras <felipe.contreras at gmail.com>
diff --git a/completions/ri b/completions/ri
index 43f6408..62a9b70 100644
--- a/completions/ri
+++ b/completions/ri
@@ -1,7 +1,7 @@
# ri completion for Ruby documentation -*- shell-script -*-
# by Ian Macdonald <ian at caliban.org>
-ri_get_methods()
+_ri_get_methods()
{
local regex
@@ -56,7 +56,7 @@ _ri()
method=${cur#*$separator}
classes=( $class )
prefix="-P $class$separator"
- ri_get_methods
+ _ri_get_methods
return 0
fi
@@ -82,7 +82,7 @@ _ri()
# we're completing on methods
method=$cur
- ri_get_methods
+ _ri_get_methods
} &&
complete -F _ri ri
--
bash-completion
More information about the Bash-completion-commits
mailing list