* [PATCH] fixup! complete: give device_param_complete a flags parameter
@ 2025-03-27 7:48 Ahmad Fatoum
2025-03-27 9:11 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2025-03-27 7:48 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum
When completing an existing variable, we want a trailing assignment, so
the use can just start typing the value.
This was the behavior before the commit being fixed up broke it.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
common/complete.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/complete.c b/common/complete.c
index 6cb674a0cc9c..5327944ca93b 100644
--- a/common/complete.c
+++ b/common/complete.c
@@ -469,7 +469,7 @@ int complete(char *instr, char **outstr)
} else {
command_complete(&sl, instr);
path_command_complete(&sl, instr);
- env_param_complete(&sl, instr, 0);
+ env_param_complete(&sl, instr, DEVPARAM_COMPLETE_ASSIGNMENT);
}
if (*instr == '$')
env_param_complete(&sl, instr + 1, DEVPARAM_COMPLETE_DOLLAR);
--
2.39.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] fixup! complete: give device_param_complete a flags parameter
2025-03-27 7:48 [PATCH] fixup! complete: give device_param_complete a flags parameter Ahmad Fatoum
@ 2025-03-27 9:11 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2025-03-27 9:11 UTC (permalink / raw)
To: Ahmad Fatoum; +Cc: barebox
On Thu, Mar 27, 2025 at 08:48:14AM +0100, Ahmad Fatoum wrote:
> When completing an existing variable, we want a trailing assignment, so
> the use can just start typing the value.
>
> This was the behavior before the commit being fixed up broke it.
>
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
> common/complete.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks
Sascha
>
> diff --git a/common/complete.c b/common/complete.c
> index 6cb674a0cc9c..5327944ca93b 100644
> --- a/common/complete.c
> +++ b/common/complete.c
> @@ -469,7 +469,7 @@ int complete(char *instr, char **outstr)
> } else {
> command_complete(&sl, instr);
> path_command_complete(&sl, instr);
> - env_param_complete(&sl, instr, 0);
> + env_param_complete(&sl, instr, DEVPARAM_COMPLETE_ASSIGNMENT);
> }
> if (*instr == '$')
> env_param_complete(&sl, instr + 1, DEVPARAM_COMPLETE_DOLLAR);
> --
> 2.39.5
>
>
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-27 9:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-27 7:48 [PATCH] fixup! complete: give device_param_complete a flags parameter Ahmad Fatoum
2025-03-27 9:11 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox