comparison src/gui.c @ 1002:41ab6b381572 v7.0.128

updated for version 7.0-128
author vimboss
date Tue, 10 Oct 2006 15:35:57 +0000
parents 9aec644c45dc
children 6c4da3e24371
comparison
equal deleted inserted replaced
1001:1de53700b1d9 1002:41ab6b381572
635 gui_mch_exit(rc); 635 gui_mch_exit(rc);
636 } 636 }
637 637
638 #if defined(FEAT_GUI_GTK) || defined(FEAT_GUI_X11) || defined(FEAT_GUI_MSWIN) \ 638 #if defined(FEAT_GUI_GTK) || defined(FEAT_GUI_X11) || defined(FEAT_GUI_MSWIN) \
639 || defined(FEAT_GUI_PHOTON) || defined(FEAT_GUI_MAC) || defined(PROTO) 639 || defined(FEAT_GUI_PHOTON) || defined(FEAT_GUI_MAC) || defined(PROTO)
640 # define NEED_GUI_UPDATE_SCREEN 1
640 /* 641 /*
641 * Called when the GUI shell is closed by the user. If there are no changed 642 * Called when the GUI shell is closed by the user. If there are no changed
642 * files Vim exits, otherwise there will be a dialog to ask the user what to 643 * files Vim exits, otherwise there will be a dialog to ask the user what to
643 * do. 644 * do.
644 * When this function returns, Vim should NOT exit! 645 * When this function returns, Vim should NOT exit!
663 if (!check_changed_any(FALSE)) 664 if (!check_changed_any(FALSE))
664 getout(0); 665 getout(0);
665 666
666 exiting = FALSE; 667 exiting = FALSE;
667 cmdmod = save_cmdmod; 668 cmdmod = save_cmdmod;
668 setcursor(); /* position cursor */ 669 gui_update_screen(); /* redraw, window may show changed buffer */
669 out_flush();
670 } 670 }
671 #endif 671 #endif
672 672
673 /* 673 /*
674 * Set the font. "font_list" is a a comma separated list of font names. The 674 * Set the font. "font_list" is a a comma separated list of font names. The
4821 ); 4821 );
4822 } 4822 }
4823 #endif 4823 #endif
4824 4824
4825 #if defined(FIND_REPLACE_DIALOG) || defined(FEAT_SUN_WORKSHOP) \ 4825 #if defined(FIND_REPLACE_DIALOG) || defined(FEAT_SUN_WORKSHOP) \
4826 || defined(NEED_GUI_UPDATE_SCREEN) \
4826 || defined(PROTO) 4827 || defined(PROTO)
4827 /* 4828 /*
4828 * Update the current window and the screen. 4829 * Update the current window and the screen.
4829 */ 4830 */
4830 void 4831 void