1
1
mirror of https://github.com/wader/fq.git synced 2024-11-24 03:05:22 +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) catch ($c | type)
); );
def _path_prefix: def _path_prefix:
(._path? // []) | if . == [] then "" else path_to_expr + " " end; (._path? // []) | if . == [] then "" else path_to_expr end;
def _preview: def _preview:
if format != null or type != "array" then if format != null or type != "array" then
_type_name_error _type_name_error

View File

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