summaryrefslogtreecommitdiff
path: root/misc/rb_optparse.zsh
diff options
context:
space:
mode:
authorAlexander Popov <alex.wayfer@gmail.com>2021-03-18 00:24:10 +0300
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-04-28 11:56:15 +0900
commit2afbe7113aceb5e3e1c63fe2778c875e975bacf3 (patch)
tree6432d3fcae54eb6480103f23f4df8200452589e1 /misc/rb_optparse.zsh
parent908785ef6d4f8503a027f5ba829f8acf394d4eda (diff)
downloadruby-2afbe7113aceb5e3e1c63fe2778c875e975bacf3.tar.gz
[ruby/optparse] Add EditorConfig file
More info here: https://editorconfig.org/ For example, `ruby/ruby` has it: https://github.com/ruby/ruby/blob/05ebaee/.editorconfig Also fix some offenses. https://github.com/ruby/optparse/commit/29402e7e0e
Diffstat (limited to 'misc/rb_optparse.zsh')
-rw-r--r--misc/rb_optparse.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/rb_optparse.zsh b/misc/rb_optparse.zsh
index 9e42eff967..258d4f856c 100644
--- a/misc/rb_optparse.zsh
+++ b/misc/rb_optparse.zsh
@@ -25,8 +25,8 @@ generate-complete-function/ruby/optparse ()
mkdir -p "${ZSH_COMPLETION_DIR-$HOME/.zsh.d/Completion}"
$1 "--*-completion-zsh=${1:t}" >! "${ZSH_COMPLETION_DIR-$HOME/.zsh.d/Completion}/$cmpl"
if [[ $(type -w "$cmpl") == "${cmpl}: function" ]]; then
- unfunction "$cmpl"
- autoload -U "$cmpl"
+ unfunction "$cmpl"
+ autoload -U "$cmpl"
else
compinit "$cmpl"
fi