You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Window goes black when using Spectacle to position it #497
I like that the latest version doesn't flicker when resizing, but a side-effect seems to be that when using Spectacle (https://github.com/eczarny/spectacle) to resize the window to the left or right half of the screen, sometimes the MacVim window goes black, with only the character under the cursor visible in white. Pressing CTRL-L causes the contents to reappear.
Same here with Moom as window manager. The problem was introduced with the commits 3fb41cc and 32e1fc9, especially the line 664 in src/MacVim/MMCoreTextView.m:
drawPending = NO;
Commenting this line eliminates the redraw problem (and wrong resize problem of the MacVim window).
But I do not think, that this is the final solution. Maybe someone with a deeper understanding of the window redrawing in MacVim can take a look at the aforementioned commits.
Reacted by Benoît Pasquier, Gerard Sychay and Klas Segeljakt
Same situation for me; I banged on this for a bit and it seems to happen only with the following Spectacle command sequence: {Alt-Cmd-C}{Alt-Cmd-F}
In other words, I center the window, then go full-screen with the window. All other combinations worked just fine in my testing.
El Capitan 10.11.6
MacVim Custom Version 8.0.596 (133)
1 - Have MacVim as the only window.
2 - Open a new window (preferably one without strict resizing limits, Safari or a text editor should do the job fine).
3 - Amethyst kicks in and resizes both windows to halves of the screen.
4 - Close the previously opened window.
5 - Amethyst kicks in and puts MacVim fullscreen again.
6 - Vim is now almost entirely black except the current line.
I find the same problem using Slate (https://github.com/jigish/slate). If I create a new window (e.g., using mvim or cmd+N), and then immediately size the window so it's completely fullscreen, some of the window will be black and if there's text on screen, it will often be duplicated.
I can confirm that ctrl+L seems to fix it, or just resizing it a little bit.
Activity
gjgrace commentedon Apr 28, 2017
I am experiencing the same issue. Any resolutions?
ralfpapenkordt commentedon May 5, 2017
Same here with Moom as window manager. The problem was introduced with the commits 3fb41cc and 32e1fc9, especially the line 664 in
src/MacVim/MMCoreTextView.m:drawPending = NO;Commenting this line eliminates the redraw problem (and wrong resize problem of the MacVim window).
But I do not think, that this is the final solution. Maybe someone with a deeper understanding of the window redrawing in MacVim can take a look at the aforementioned commits.
JESii commentedon May 26, 2017
Same situation for me; I banged on this for a bit and it seems to happen only with the following Spectacle command sequence:
{Alt-Cmd-C}{Alt-Cmd-F}In other words, I center the window, then go full-screen with the window. All other combinations worked just fine in my testing.
El Capitan 10.11.6
MacVim Custom Version 8.0.596 (133)
fanzeyi commentedon Jun 26, 2017
Same here, I always manually resize the window by a little to make the black screen go away. It is super annoying though.
sc68cal commentedon Jul 17, 2017
Same here, with Amethyst
L1Cafe commentedon Oct 9, 2017
Can confirm, Amethyst as well.
Easy to reproduce on Amethyst too.
1 - Have MacVim as the only window.
2 - Open a new window (preferably one without strict resizing limits, Safari or a text editor should do the job fine).
3 - Amethyst kicks in and resizes both windows to halves of the screen.
4 - Close the previously opened window.
5 - Amethyst kicks in and puts MacVim fullscreen again.
6 - Vim is now almost entirely black except the current line.
drifkin commentedon Dec 18, 2017
I find the same problem using Slate (https://github.com/jigish/slate). If I create a new window (e.g., using
mvimor cmd+N), and then immediately size the window so it's completely fullscreen, some of the window will be black and if there's text on screen, it will often be duplicated.I can confirm that ctrl+L seems to fix it, or just resizing it a little bit.
jstrater commentedon Jun 28, 2018
Same problem happens when using Divvy to resize MacVim windows. As with the other tools, C-l redraws successfully.
benoittgt commentedon Aug 28, 2018
Isn't an issue that could be fixed regardless the comment #497 (comment) ?