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:
parent
95ec5e1077
commit
b024316289
@ -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
|
||||||
|
2
pkg/interp/testdata/repl.fqtest
vendored
2
pkg/interp/testdata/repl.fqtest
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user