Skip to content

Don't set cpo&vim if we're going to early exit #399

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

Merged
merged 2 commits into from
Apr 18, 2025

Conversation

jez
Copy link
Contributor

@jez jez commented Apr 17, 2025

This was a bad merge that resulted from #393 being opened before #397
but landing after.

If we override the &cpo option and then finish, it will never get
set back to the saved cpo.

Instead, let's just only do the set if we're sure we're not going to
early exit.

jez added 2 commits April 17, 2025 15:30
This was a bad merge that resulted from vim-pandoc#393 being opened before vim-pandoc#397
but landing after.

If we override the `&cpo` option and then `finish`, it will never get
set back to the saved cpo.

Instead, let's just only do the `set` if we're sure we're not going to
early exit.
This also regressed in vim-pandoc#393, but we may as well fix it here.
@alerque alerque merged commit ea3fc41 into vim-pandoc:master Apr 18, 2025
1 check passed
@alerque
Copy link
Member

alerque commented Apr 18, 2025

Good catch, 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