mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-07 15:37:14 +02:00
Order window front when opening files
Ensure that the window is ordered front when opening files in an already open window (otherwise a newly open filed may be in an obscured window).
This commit is contained in:
@@ -255,6 +255,7 @@ typedef struct
|
||||
if ((openInTabs && (vc = [self topmostVimController]))
|
||||
|| (vc = [self findUntitledWindow])) {
|
||||
// Open files in an already open window.
|
||||
[[[vc windowController] window] makeKeyAndOrderFront:self];
|
||||
[self passArguments:arguments toVimController:vc];
|
||||
} else {
|
||||
// Open files in a launching Vim process or start a new process.
|
||||
|
||||
Reference in New Issue
Block a user