1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-24 03:25:03 +03:00

GH-302, GH-421 Force activate app when using CLI tool

This commit is contained in:
Tae Won Ha 2017-06-14 18:20:00 +02:00
parent 909a910cf7
commit 3576f42cde
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -231,6 +231,9 @@ extension AppDelegate {
_ = Darwin.close(Darwin.open(pipePath, O_WRONLY))
}
// If we don't do this, the window is active, but not in front.
NSApp.activate(ignoringOtherApps: true)
switch action {
case .activate, .newWindow: