diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-28 06:32:07 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-07-28 06:45:22 +0800 |
commit | e6b7f70294f0e461e95621719c459c9765f07dc7 (patch) | |
tree | c856aff289deb8d81411ecad69f0534e3bacd2bb /src/nvim/indent_c.c | |
parent | e0eebe3087f926097fbc6902b157c9007c012572 (diff) | |
download | rneovim-e6b7f70294f0e461e95621719c459c9765f07dc7.tar.gz rneovim-e6b7f70294f0e461e95621719c459c9765f07dc7.tar.bz2 rneovim-e6b7f70294f0e461e95621719c459c9765f07dc7.zip |
vim-patch:9.0.0095: conditions are always true
Problem: Conditions are always true.
Solution: Remove useless conditions. (closes vim/vim#10802)
https://github.com/vim/vim/commit/122dea70073d140aa89212d344c3f62bd3b5b3fa
Diffstat (limited to 'src/nvim/indent_c.c')
-rw-r--r-- | src/nvim/indent_c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/indent_c.c b/src/nvim/indent_c.c index 3c74b4bd8d..b89ab19226 100644 --- a/src/nvim/indent_c.c +++ b/src/nvim/indent_c.c @@ -3569,7 +3569,7 @@ term_again: // Are we at the start of a cpp base class declaration or // constructor initialization? XXX n = 0; - if (curbuf->b_ind_cpp_baseclass != 0 && theline[0] != '{') { + if (curbuf->b_ind_cpp_baseclass != 0) { n = cin_is_cpp_baseclass(&cache_cpp_baseclass); l = get_cursor_line_ptr(); } |