Skip to content

Commit

Permalink
Clear preload cache on "login shell" option changes
Browse files Browse the repository at this point in the history
  • Loading branch information
b4winckler committed Aug 11, 2008
1 parent 6f0611c commit 0a0f80b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
9 changes: 7 additions & 2 deletions src/MacVim/English.lproj/Preferences.nib/classes.nib

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions src/MacVim/English.lproj/Preferences.nib/info.nib

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified src/MacVim/English.lproj/Preferences.nib/keyedobjects.nib
Binary file not shown.
11 changes: 11 additions & 0 deletions src/MacVim/MMAppController.m
Expand Up @@ -982,6 +982,17 @@ - (IBAction)zoomAll:(id)sender
[NSApp makeWindowsPerform:@selector(performZoom:) inOrder:YES];
}

- (IBAction)loginShellButtonClicked:(id)sender
{
// This action is called when the user clicks the "use login shell" button
// in the general preferences pane.
if ([self maxPreloadCacheSize] > 0) {
[self clearPreloadCacheWithCount:-1];
[self cancelVimControllerPreloadRequests];
[self scheduleVimControllerPreloadAfterDelay:1.0];
}
}

- (byref id <MMFrontendProtocol>)
connectBackend:(byref in id <MMBackendProtocol>)backend
pid:(int)pid
Expand Down

0 comments on commit 0a0f80b

Please sign in to comment.