1
1
mirror of https://github.com/wader/fq.git synced 2024-11-23 18:56:52 +03:00

interp: Remove accidental extra space after path in prompt

This commit is contained in:
Mattias Wadman 2021-10-22 00:17:46 +02:00
parent 95ec5e1077
commit b024316289
2 changed files with 3 additions and 1 deletions

View File

@ -111,7 +111,7 @@ def _prompt:
catch ($c | type)
);
def _path_prefix:
(._path? // []) | if . == [] then "" else path_to_expr + " " end;
(._path? // []) | if . == [] then "" else path_to_expr end;
def _preview:
if format != null or type != "array" then
_type_name_error

View File

@ -24,6 +24,8 @@ null> 1,2,3 | repl
2
3
> number, [3]> ^D
null> (1 | raw | .unknown0), 1 | repl
> .unknown0, [2]> ^D
null> def f: 1; f,f | repl
> number, [2]> .
1