Mercurial > vim
comparison src/gui.c @ 664:ce5a759cc907
updated for version 7.0196
author | vimboss |
---|---|
date | Fri, 10 Feb 2006 23:13:40 +0000 |
parents | ba54311bc43e |
children | b945c6d9f3c7 |
comparison
equal
deleted
inserted
replaced
663:0701ca4c8ceb | 664:ce5a759cc907 |
---|---|
3053 */ | 3053 */ |
3054 void | 3054 void |
3055 gui_menu_cb(menu) | 3055 gui_menu_cb(menu) |
3056 vimmenu_T *menu; | 3056 vimmenu_T *menu; |
3057 { | 3057 { |
3058 char_u bytes[3 + sizeof(long_u)]; | 3058 char_u bytes[sizeof(long_u)]; |
3059 | 3059 |
3060 /* Don't put events in the input queue now. */ | 3060 /* Don't put events in the input queue now. */ |
3061 if (hold_gui_events) | 3061 if (hold_gui_events) |
3062 return; | 3062 return; |
3063 | 3063 |
3064 bytes[0] = CSI; | 3064 bytes[0] = CSI; |
3065 bytes[1] = KS_MENU; | 3065 bytes[1] = KS_MENU; |
3066 bytes[2] = KE_FILLER; | 3066 bytes[2] = KE_FILLER; |
3067 add_long_to_buf((long_u)menu, bytes + 3); | 3067 add_to_input_buf(bytes, 3); |
3068 add_to_input_buf(bytes, 3 + sizeof(long_u)); | 3068 add_long_to_buf((long_u)menu, bytes); |
3069 add_to_input_buf_csi(bytes, sizeof(long_u)); | |
3069 } | 3070 } |
3070 #endif | 3071 #endif |
3071 | 3072 |
3072 /* | 3073 /* |
3073 * Set which components are present. | 3074 * Set which components are present. |
3356 # endif | 3357 # endif |
3357 # ifdef FEAT_DIFF | 3358 # ifdef FEAT_DIFF |
3358 int old_topfill = curwin->w_topfill; | 3359 int old_topfill = curwin->w_topfill; |
3359 # endif | 3360 # endif |
3360 #else | 3361 #else |
3361 char_u bytes[4 + sizeof(long_u)]; | 3362 char_u bytes[sizeof(long_u)]; |
3362 int byte_count; | 3363 int byte_count; |
3363 #endif | 3364 #endif |
3364 | 3365 |
3365 if (sb == NULL) | 3366 if (sb == NULL) |
3366 return; | 3367 return; |
3526 } | 3527 } |
3527 # endif | 3528 # endif |
3528 out_flush(); | 3529 out_flush(); |
3529 gui_update_cursor(FALSE, TRUE); | 3530 gui_update_cursor(FALSE, TRUE); |
3530 #else | 3531 #else |
3531 add_long_to_buf((long)value, bytes + byte_count); | 3532 add_to_input_buf(bytes, byte_count); |
3532 add_to_input_buf(bytes, byte_count + sizeof(long_u)); | 3533 add_long_to_buf((long_u)value, bytes); |
3534 add_to_input_buf_csi(bytes, sizeof(long_u)); | |
3533 #endif | 3535 #endif |
3534 } | 3536 } |
3535 | 3537 |
3536 /* | 3538 /* |
3537 * Scrollbar stuff: | 3539 * Scrollbar stuff: |