mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-24 11:37:32 +03:00
GH-302, GH-421 Force activate app when using CLI tool
This commit is contained in:
parent
909a910cf7
commit
3576f42cde
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user