Fix #394: Avoid problem happening.#395
Merged
Merged
Conversation
Owner
|
Thank you. The remaining problem is as we continuously reuse the buffer when it's open, it fails when you do |
Contributor
Author
|
@junegunn Good point, I'll add that to my todo. |
* Do not map during prepare when function can be async. Delay to s:finish() * Always create new buffer, due to mappings change. * Don't show Pending updates when no appropriate plugs. * No need for print brackets on python 2.
8bdd2f3 to
d5a5697
Compare
Contributor
Author
|
@junegunn Anything else? I went with simply destroying it every time by invoking q. |
Owner
|
How about enew? if s:switch_in()
enew
else
call s:new_window()
endifThis clears the buffer (bufhidden=wipe) and its maps but reuses the window, so the size of the window is retained if the user previously resized it for some reason. |
Owner
|
After a second thought, I think |
junegunn
added a commit
that referenced
this pull request
Jan 29, 2016
Fix #394: Avoid problem happening.
Owner
|
👍 |
Contributor
Author
|
No problem. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is largely a response to fix: #394.
Maps are only bound on prepare when function is guaranteed synchronous, else delay until finish of update/install to be done in s:finish(). Avoids the accidental neovim breakage experienced in that issue.
Also, small typo with respect to the platform test, print doesn't need brackets for python 2.
TODO: