mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
Decrease false positives on untitled window detection
The detection algorithm is still dumb; it now thinks a window is untitled (i.e. good for opening new files in) when its title begins with "[No Name] - VIM". This means that it now rejects modified buffers which haven't been saved to a file.
This commit is contained in:
@@ -967,7 +967,7 @@ typedef struct
|
||||
// TODO: This is a moronic test...should query the Vim process if there
|
||||
// are any open buffers or something like that instead.
|
||||
NSString *title = [[[vc windowController] window] title];
|
||||
if ([title hasPrefix:@"[No Name]"]) {
|
||||
if ([title hasPrefix:@"[No Name] - VIM"]) {
|
||||
//NSLog(@"found untitled window");
|
||||
return vc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user