comparison src/gui_photon.c @ 16162:cd5c83115ec6 v8.1.1086

patch 8.1.1086: too many curly braces commit https://github.com/vim/vim/commit/abab0b0fdd6535969447b03a4fffc1947918cf6c Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 30 18:47:01 2019 +0100 patch 8.1.1086: too many curly braces Problem: Too many curly braces. Solution: Remove curly braces where they are not needed. (Hirohito Higashi, closes #3982)
author Bram Moolenaar <Bram@vim.org>
date Sat, 30 Mar 2019 19:00:07 +0100
parents 31367ce5aac7
children ce04ebdf26b8
comparison
equal deleted inserted replaced
16161:75fa84e2461b 16162:cd5c83115ec6
449 if (p_mh) 449 if (p_mh)
450 gui_mch_mousehide(MOUSE_HIDE); 450 gui_mch_mousehide(MOUSE_HIDE);
451 451
452 /* We're a good lil photon program, aren't we? yes we are, yeess wee arrr */ 452 /* We're a good lil photon program, aren't we? yes we are, yeess wee arrr */
453 if (key->key_flags & Pk_KF_Compose) 453 if (key->key_flags & Pk_KF_Compose)
454 {
455 return Pt_CONTINUE; 454 return Pt_CONTINUE;
456 }
457 455
458 if ((key->key_flags & Pk_KF_Cap_Valid) && 456 if ((key->key_flags & Pk_KF_Cap_Valid) &&
459 PkIsKeyDown(key->key_flags)) 457 PkIsKeyDown(key->key_flags))
460 { 458 {
461 #ifdef FEAT_MENU 459 #ifdef FEAT_MENU
1009 char **s = new_titles; 1007 char **s = new_titles;
1010 /* Copy all the titles except the one we're removing */ 1008 /* Copy all the titles except the one we're removing */
1011 for (i = 0; i < num_panels; i++) 1009 for (i = 0; i < num_panels; i++)
1012 { 1010 {
1013 if (STRCMP(panel_titles[ i ], name) != 0) 1011 if (STRCMP(panel_titles[ i ], name) != 0)
1014 {
1015 *s++ = panel_titles[ i ]; 1012 *s++ = panel_titles[ i ];
1016 }
1017 } 1013 }
1018 num_panels--; 1014 num_panels--;
1019 1015
1020 PtSetResource(gui.vimPanelGroup, Pt_ARG_PG_PANEL_TITLES, new_titles, 1016 PtSetResource(gui.vimPanelGroup, Pt_ARG_PG_PANEL_TITLES, new_titles,
1021 num_panels); 1017 num_panels);
1332 { 1328 {
1333 int working = TRUE; 1329 int working = TRUE;
1334 1330
1335 PtAppAddWorkProc(NULL, exit_gui_mch_update, &working); 1331 PtAppAddWorkProc(NULL, exit_gui_mch_update, &working);
1336 while ((working == TRUE) && !vim_is_input_buf_full()) 1332 while ((working == TRUE) && !vim_is_input_buf_full())
1337 {
1338 PtProcessEvent(); 1333 PtProcessEvent();
1339 }
1340 } 1334 }
1341 1335
1342 int 1336 int
1343 gui_mch_wait_for_chars(int wtime) 1337 gui_mch_wait_for_chars(int wtime)
1344 { 1338 {
2406 return icon; 2400 return icon;
2407 } 2401 }
2408 2402
2409 if (menu->iconidx >= 0 && 2403 if (menu->iconidx >= 0 &&
2410 (menu->iconidx < ARRAY_LENGTH(gui_ph_toolbar_images))) 2404 (menu->iconidx < ARRAY_LENGTH(gui_ph_toolbar_images)))
2411 {
2412 return gui_ph_toolbar_images[menu->iconidx]; 2405 return gui_ph_toolbar_images[menu->iconidx];
2413 }
2414 2406
2415 return NULL; 2407 return NULL;
2416 } 2408 }
2417 #endif 2409 #endif
2418 2410