Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strip trailing pipe from line buffer #28

Merged
merged 1 commit into from
Nov 15, 2023
Merged

Strip trailing pipe from line buffer #28

merged 1 commit into from
Nov 15, 2023

Conversation

adriangoransson
Copy link
Contributor

Great plugin, thanks!

An issue I came across is that the repl fails to start if the line already has a trailing pipe.

% echo '{"hello": "world"}' | # jq-complete
__get_query:3: invalid function definition

This will run correctly for a case like below, where the user might have
been too quick to add a pipe, before remembering to use the REPL.

    % echo '{"hello": "world"}' | # jq-complete
    __get_query:3: invalid function definition
@reegnz reegnz merged commit c536049 into reegnz:master Nov 15, 2023
@reegnz
Copy link
Owner

reegnz commented Nov 15, 2023

Looks great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants