Mercurial > vim
diff 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 |
line wrap: on
line diff
--- a/src/gui_photon.c +++ b/src/gui_photon.c @@ -451,9 +451,7 @@ gui_ph_handle_keyboard(PtWidget_t *widge /* We're a good lil photon program, aren't we? yes we are, yeess wee arrr */ if (key->key_flags & Pk_KF_Compose) - { return Pt_CONTINUE; - } if ((key->key_flags & Pk_KF_Cap_Valid) && PkIsKeyDown(key->key_flags)) @@ -1011,9 +1009,7 @@ gui_ph_pg_remove_buffer(char *name) for (i = 0; i < num_panels; i++) { if (STRCMP(panel_titles[ i ], name) != 0) - { *s++ = panel_titles[ i ]; - } } num_panels--; @@ -1334,9 +1330,7 @@ gui_mch_update(void) PtAppAddWorkProc(NULL, exit_gui_mch_update, &working); while ((working == TRUE) && !vim_is_input_buf_full()) - { PtProcessEvent(); - } } int @@ -2408,9 +2402,7 @@ gui_ph_toolbar_find_icon(vimmenu_T *menu if (menu->iconidx >= 0 && (menu->iconidx < ARRAY_LENGTH(gui_ph_toolbar_images))) - { return gui_ph_toolbar_images[menu->iconidx]; - } return NULL; }