Mercurial > vim
comparison src/gui.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 | 7fad90423bd2 |
children | 0f3c50a68637 |
comparison
equal
deleted
inserted
replaced
16161:75fa84e2461b | 16162:cd5c83115ec6 |
---|---|
3506 gui_mch_enable_scrollbar(&gui.bottom_sbar, | 3506 gui_mch_enable_scrollbar(&gui.bottom_sbar, |
3507 gui.which_scrollbars[i]); | 3507 gui.which_scrollbars[i]); |
3508 else | 3508 else |
3509 { | 3509 { |
3510 FOR_ALL_WINDOWS(wp) | 3510 FOR_ALL_WINDOWS(wp) |
3511 { | |
3512 gui_do_scrollbar(wp, i, gui.which_scrollbars[i]); | 3511 gui_do_scrollbar(wp, i, gui.which_scrollbars[i]); |
3513 } | |
3514 } | 3512 } |
3515 if (gui.which_scrollbars[i] != prev_which_scrollbars[i]) | 3513 if (gui.which_scrollbars[i] != prev_which_scrollbars[i]) |
3516 { | 3514 { |
3517 if (i == SBAR_BOTTOM) | 3515 if (i == SBAR_BOTTOM) |
3518 need_set_size |= RESIZE_VERT; | 3516 need_set_size |= RESIZE_VERT; |
3828 if (i == SBAR_BOTTOM) | 3826 if (i == SBAR_BOTTOM) |
3829 gui_mch_enable_scrollbar(&gui.bottom_sbar, FALSE); | 3827 gui_mch_enable_scrollbar(&gui.bottom_sbar, FALSE); |
3830 else | 3828 else |
3831 { | 3829 { |
3832 FOR_ALL_WINDOWS(wp) | 3830 FOR_ALL_WINDOWS(wp) |
3833 { | |
3834 gui_do_scrollbar(wp, i, FALSE); | 3831 gui_do_scrollbar(wp, i, FALSE); |
3835 } | |
3836 } | 3832 } |
3837 curtab->tp_prev_which_scrollbars[i] = -1; | 3833 curtab->tp_prev_which_scrollbars[i] = -1; |
3838 } | 3834 } |
3839 } | 3835 } |
3840 | 3836 |