Closed Alexander-Miller closed 7 years ago
On second thought: hold up. I need to go hunt some edge cases.
New version pushed, it should now correctly cover the case of created frames.
Merged ! 👍 ✨
Thank you very much for this, I indeed didn't catch that logic flaw. Don't hesitate to send other ones, I'll try to be quicker at merging them !
By the way, how did that silent spaceline error manifest itself ? Was it visible to the user in some way ?
It's been so long that I've forgotten most of the details. I do know I was debugging some unrelated modeline issue in treemacs and randomly ran into this. The error isn't really user-visible, there's just an error in the messages buffer that looks like Error during redisplay: (eval (spaceline-ml-main)) signaled <some errror>
.
Anyways, nice catch and thank you for the fix !
There's no entry for a frame right after it's created, which makes spaceline throw a silent error. Entries for killed frames are also never cleaned up. This PR takes care of both issues.