mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
Visual bg color changed in script instead of in code.
git-svn-id: http://macvim.googlecode.com/svn/trunk@226 96c4425d-ca35-0410-94e5-3396d5c13a8f
This commit is contained in:
-16
@@ -1539,23 +1539,7 @@ enum {
|
||||
|
||||
- (void)focusChange:(BOOL)on
|
||||
{
|
||||
// This is a bit of an ugly way to change the selection color.
|
||||
// TODO: Is there a nicer way to do this?
|
||||
// TODO: Store selection color and restore it when focus is regained.
|
||||
char *cmd = on
|
||||
? "hi Visual guibg=MacSelectedTextBackgroundColor"
|
||||
: "hi Visual guibg=MacSecondarySelectedControlColor";
|
||||
|
||||
do_cmdline_cmd((char_u*)cmd);
|
||||
gui_focus_change(on);
|
||||
|
||||
// TODO: Is all this necessary just to get the highlights to update?
|
||||
redraw_all_later(CLEAR);
|
||||
update_screen(NOT_VALID);
|
||||
setcursor();
|
||||
out_flush();
|
||||
gui_update_cursor(FALSE, FALSE);
|
||||
gui_mch_flush();
|
||||
}
|
||||
|
||||
- (void)processInputBegin
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" System gvimrc file for MacVim
|
||||
"
|
||||
" Maintainer: Björn Winckler <bjorn.winckler@gmail.com>
|
||||
" Last Change: Wed Aug 29 2007
|
||||
" Last Change: Sun Sep 02 2007
|
||||
"
|
||||
" This is a work in progress. If you feel so inclined, please help me improve
|
||||
" this file.
|
||||
@@ -25,6 +25,11 @@ endif
|
||||
set keymodel=startsel
|
||||
|
||||
|
||||
" Change selection color on focus change
|
||||
au FocusLost * hi Visual guibg=MacSecondarySelectedControlColor
|
||||
au FocusGained * hi Visual guibg=MacSelectedTextBackgroundColor
|
||||
|
||||
|
||||
"
|
||||
" Extra menus
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user