Mercurial > vim
comparison src/gui.c @ 1668:0b796e045c42 v7.2b.000
updated for version 7.2b-000
author | vimboss |
---|---|
date | Sun, 13 Jul 2008 17:41:49 +0000 |
parents | 73fe8baea242 |
children | 0dbc46d14443 |
comparison
equal
deleted
inserted
replaced
1667:131dbd3d2a4b | 1668:0b796e045c42 |
---|---|
956 #if defined(USE_IM_CONTROL) || defined(FEAT_HANGULIN) | 956 #if defined(USE_IM_CONTROL) || defined(FEAT_HANGULIN) |
957 { | 957 { |
958 static int iid; | 958 static int iid; |
959 guicolor_T fg, bg; | 959 guicolor_T fg, bg; |
960 | 960 |
961 if (im_get_status()) | 961 if ( |
962 # ifdef HAVE_GTK2 | |
963 preedit_get_status() | |
964 # else | |
965 im_get_status() | |
966 # endif | |
967 ) | |
962 { | 968 { |
963 iid = syn_name2id((char_u *)"CursorIM"); | 969 iid = syn_name2id((char_u *)"CursorIM"); |
964 if (iid > 0) | 970 if (iid > 0) |
965 { | 971 { |
966 syn_id2colors(iid, &fg, &bg); | 972 syn_id2colors(iid, &fg, &bg); |
5122 char_u **fnames; | 5128 char_u **fnames; |
5123 int count; | 5129 int count; |
5124 { | 5130 { |
5125 int i; | 5131 int i; |
5126 char_u *p; | 5132 char_u *p; |
5133 static int entered = FALSE; | |
5134 | |
5135 /* | |
5136 * This function is called by event handlers. Just in case we get a | |
5137 * second event before the first one is handled, ignore the second one. | |
5138 * Not sure if this can ever happen, just in case. | |
5139 */ | |
5140 if (entered) | |
5141 return; | |
5142 entered = TRUE; | |
5127 | 5143 |
5128 /* | 5144 /* |
5129 * When the cursor is at the command line, add the file names to the | 5145 * When the cursor is at the command line, add the file names to the |
5130 * command line, don't edit the files. | 5146 * command line, don't edit the files. |
5131 */ | 5147 */ |
5205 setcursor(); | 5221 setcursor(); |
5206 out_flush(); | 5222 out_flush(); |
5207 gui_update_cursor(FALSE, FALSE); | 5223 gui_update_cursor(FALSE, FALSE); |
5208 gui_mch_flush(); | 5224 gui_mch_flush(); |
5209 } | 5225 } |
5210 } | 5226 |
5211 #endif | 5227 entered = FALSE; |
5228 } | |
5229 #endif |