summaryrefslogtreecommitdiff
path: root/src/session.ml
diff options
context:
space:
mode:
Diffstat (limited to 'src/session.ml')
-rw-r--r--src/session.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/session.ml b/src/session.ml
index 28ccdad..53a8c7f 100644
--- a/src/session.ml
+++ b/src/session.ml
@@ -405,8 +405,9 @@ let get_completion_env ?(legacy_format=false) w s path =
| h :: tl -> (h, tl)
in
let config = get_proposed_config w s in
+ let path_total = s.edit_level @ path in
let res =
- Vyos1x.Completion.get_completion_env_str ~legacy_format w.reference_tree config op path
+ Vyos1x.Completion.get_completion_env_str ~legacy_format w.reference_tree config op path_total
in
match res with
| Ok env -> env