Skip to content

Commit

Permalink
interp: Remove accidental extra space after path in prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
wader committed Oct 21, 2021
1 parent 95ec5e1 commit b024316
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/interp/repl.jq
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions pkg/interp/testdata/repl.fqtest
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b024316

Please sign in to comment.