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

don't spam users when Vim is started with Vi compatibility mode #2055

Merged
merged 1 commit into from
Nov 16, 2018

Conversation

bhcleek
Copy link
Collaborator

@bhcleek bhcleek commented Nov 16, 2018

Fixes #1982

@bhcleek bhcleek merged commit 6866d08 into fatih:master Nov 16, 2018
@bhcleek bhcleek deleted the vi-compatible-plugin branch November 16, 2018 16:37
bhcleek added a commit that referenced this pull request Nov 16, 2018
dhduvall added a commit to dhduvall/vim-go that referenced this pull request Dec 11, 2018
If a script calls `finish`, the restoration of `&cpo`, which is at the
end of the script, never gets called.

As a follow-up to fatih#2055, this change moves the place where `&cpo` is
preserved until after the places where `finish` is called.  I believe
this is safe, since those places are near the beginning of their
respective scripts, and there's nothing earlier that's dependent on the
default setting of `&cpo`.
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.

1 participant