Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:26
erlang
0412-stdlib-fix-bug-in-shell-completion-when-co...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0412-stdlib-fix-bug-in-shell-completion-when-completing-f.patch of Package erlang
From 234bdd750196b6b48a5bc30f2720067447e13f2e Mon Sep 17 00:00:00 2001 From: Fredrik Frantzen <frazze@erlang.org> Date: Mon, 11 Nov 2024 11:43:41 +0100 Subject: [PATCH] stdlib: fix bug in shell completion when completing 'fun(' --- lib/stdlib/src/edlin_context.erl | 1 + lib/stdlib/test/edlin_context_SUITE.erl | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib/stdlib/src/edlin_context.erl b/lib/stdlib/src/edlin_context.erl index 0d64d41d13..b66b16ac08 100644 --- a/lib/stdlib/src/edlin_context.erl +++ b/lib/stdlib/src/edlin_context.erl @@ -114,6 +114,7 @@ get_context([$(|Bef], CR) -> {Bef1, Fun} = edlin_expand:over_word(Bef), case Fun of [] -> {term}; % parenthesis + "fun" -> {fun_}; _ -> {_, Mod} = over_module(Bef1, Fun), case Mod of diff --git a/lib/stdlib/test/edlin_context_SUITE.erl b/lib/stdlib/test/edlin_context_SUITE.erl index 0ab8fd4cad..cb0191ecdb 100644 --- a/lib/stdlib/test/edlin_context_SUITE.erl +++ b/lib/stdlib/test/edlin_context_SUITE.erl @@ -188,4 +188,6 @@ get_context(_Config) -> {term,[],{float,"-1.2"}} = edlin_context:get_context(lists:reverse("-1.2")), {term,[],{tuple, "{hej, svej}"}} = edlin_context:get_context(lists:reverse("begin {hej, svej}")), {term,[],[]} = edlin_context:get_context(lists:reverse("begin {hej, svej} = {")), + {fun_} = edlin_context:get_context(lists:reverse("fun(")), + {fun_} = edlin_context:get_context(lists:reverse("maps:map(fun(")), ok. \ No newline at end of file -- 2.43.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor