Special case t.items = [Text _] and t.items = []
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
This commit is contained in:
parent
243f3437f2
commit
9cc8ff920a
|
@ -170,6 +170,8 @@ let partial_expand t ~mode ~dir ~f =
|
|||
end
|
||||
in
|
||||
match t.items with
|
||||
| [] -> Partial.Expanded (Mode.string mode "")
|
||||
| [Text s] -> Expanded (Mode.string mode s)
|
||||
| [Var (syntax, v)] when not t.quoted ->
|
||||
(* Unquoted single var *)
|
||||
begin match f syntax t.loc v with
|
||||
|
|
Loading…
Reference in New Issue