diff options
author | Pierre Fenoll <[email protected]> | 2013-12-03 12:55:38 +0000 |
---|---|---|
committer | Pierre Fenoll <[email protected]> | 2014-01-09 12:38:49 +0000 |
commit | dfb4ec804a099b539c91e5643090d8183885e71c (patch) | |
tree | adb553973587895787ead759ea6efa7fc413d1a1 /lib/stdlib/test/expand_test1.erl | |
parent | 2f2824519d13e7745c02efbc7c29c37a76885fee (diff) | |
download | otp-dfb4ec804a099b539c91e5643090d8183885e71c.tar.gz otp-dfb4ec804a099b539c91e5643090d8183885e71c.tar.bz2 otp-dfb4ec804a099b539c91e5643090d8183885e71c.zip |
Shell: expand 0-arity functions all the way to closing parenthesis
`erl` has tab completion for modules' exported functions but expands
only up to the opening paren. This commit closes that opening paren
in case the function is of arity zero and there is no other function with
the same name. It browses the lists of matches (a 2nd time) for Arity,
on complete match and then decides what to append.
Diffstat (limited to 'lib/stdlib/test/expand_test1.erl')
-rw-r--r-- | lib/stdlib/test/expand_test1.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stdlib/test/expand_test1.erl b/lib/stdlib/test/expand_test1.erl index 11b6fec0f3..1d375e5677 100644 --- a/lib/stdlib/test/expand_test1.erl +++ b/lib/stdlib/test/expand_test1.erl @@ -23,7 +23,7 @@ b_comes_after_a/1, 'Quoted_fun_name'/0, 'Quoted_fun_too'/0, - '#weird-fun-name'/0]). + '#weird-fun-name'/1]). a_fun_name(X) -> X. @@ -40,5 +40,5 @@ b_comes_after_a(X) -> 'Quoted_fun_too'() -> too. -'#weird-fun-name'() -> +'#weird-fun-name'(_) -> weird. |