Skip to content
This repository was archived by the owner on May 3, 2023. It is now read-only.

stop assuming always active window, fixes #15#45

Merged
beyang merged 1 commit intosourcegraph:masterfrom
howeyc:nil-active
Aug 18, 2016
Merged

stop assuming always active window, fixes #15#45
beyang merged 1 commit intosourcegraph:masterfrom
howeyc:nil-active

Conversation

@howeyc
Copy link
Copy Markdown
Contributor

@howeyc howeyc commented Aug 18, 2016

From what I can tell, there seems to be an implicit assumption that there will always be an "active" window. This is not the case, at least on windows (you could have everything minimized for example).

This fixes the issue in a quick and dirty way by making sure window returned from the map for the "active" window actually exists before trying to use the pointer.

@beyang beyang merged commit e05b50c into sourcegraph:master Aug 18, 2016
@beyang
Copy link
Copy Markdown
Member

beyang commented Aug 18, 2016

thanks for this!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants