[PATCH] fixup! complete: give device_param_complete a flags parameter

Ahmad Fatoum a.fatoum at pengutronix.de
Thu Mar 27 00:48:14 PDT 2025


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 at 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




More information about the barebox mailing list