diff options
| author | John Estabrook <jestabro@vyos.io> | 2026-02-24 15:08:05 -0600 |
|---|---|---|
| committer | John Estabrook <jestabro@vyos.io> | 2026-03-04 15:44:38 +0100 |
| commit | c024aafe1224e828b8dcc4318fc423665d388091 (patch) | |
| tree | 4dec34fa5b87cd11b90ed9d12382fd821f909028 | |
| parent | 2c16a5ad7171362d71ff241adab873fa3752b784 (diff) | |
| download | vyconf-c024aafe1224e828b8dcc4318fc423665d388091.tar.gz vyconf-c024aafe1224e828b8dcc4318fc423665d388091.zip | |
T8313: make get_completion_env edit-level aware
| -rw-r--r-- | src/session.ml | 3 |
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 |
