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

when open new buffer and show tab bar, the screen blacked! #269

Closed
SolaWing opened this issue Apr 26, 2016 · 3 comments
Closed

when open new buffer and show tab bar, the screen blacked! #269

SolaWing opened this issue Apr 26, 2016 · 3 comments

Comments

@SolaWing
Copy link

SolaWing commented Apr 26, 2016

As the gif shows, when open a new buffer in a new tab, the screen flicker with black.

version is OS X 10.11, MacVim 101 release.

bug1

@jpetrie
Copy link
Contributor

jpetrie commented Jul 16, 2016

I cannot reproduce this on latest; what version of MacVim are you using and does it still happen if you use the latest screenshot? Does it still happen if you run without your .vimrc or plugins loaded?

@SolaWing
Copy link
Author

Indeed it is ok when no plugin load. After further test, I've found the FileType autocmd cause this issue. I profile functions and found: My plugin Tagbar runs 200ms when switch to new file.

so now I can reproduce this issue without .vimrc or plugins loaded, just do the following cmd:

filetype on
autocmd FileType * sleep 20ms   " the longer the issue more obvious
take path/to/file

@jpetrie
Copy link
Contributor

jpetrie commented Jul 17, 2016

I don't think there's anything we can do about this.

MacVim has to wait for vim to tell it how to draw a given buffer. Vim may need to process autocommands and file type plugins in order to do that, so MacVim can't draw until those are completed. If your autocommands take too long, you will see visual artifacts and delays because MacVim has to simply wait for the information to come in.

@jpetrie jpetrie closed this as completed Jul 17, 2016
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

No branches or pull requests

2 participants