diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-25 22:38:13 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-26 00:05:29 -0400 |
commit | 2d6c91ab9954c2f3be27c7eefaaa498d91e557be (patch) | |
tree | 1054c05c02082f0426e6d539dab40879c57e7f16 /src/nvim/search.c | |
parent | 62c7fcbdab28589b0efff03d7b26408362514a19 (diff) | |
download | rneovim-2d6c91ab9954c2f3be27c7eefaaa498d91e557be.tar.gz rneovim-2d6c91ab9954c2f3be27c7eefaaa498d91e557be.tar.bz2 rneovim-2d6c91ab9954c2f3be27c7eefaaa498d91e557be.zip |
vim-patch:8.0.1688: some macros are used without a semicolon
Problem: Some macros are used without a semicolon, causing auto-indent to be
wrong.
Solution: Use the do-while(0) trick. (Ozaki Kiichi, closes vim/vim#2729)
https://github.com/vim/vim/commit/6f4700233fd925fe122b851f937929fb5e5da707
Diffstat (limited to 'src/nvim/search.c')
-rw-r--r-- | src/nvim/search.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/search.c b/src/nvim/search.c index 1f9ac93df0..ed18df3877 100644 --- a/src/nvim/search.c +++ b/src/nvim/search.c @@ -4344,8 +4344,8 @@ find_pattern_in_path( char_u *ptr, // pointer to search pattern int dir, // direction of expansion size_t len, // length of search pattern - int whole, // match whole words only - int skip_comments, // don't match inside comments + bool whole, // match whole words only + bool skip_comments, // don't match inside comments int type, // Type of search; are we looking for a type? // a macro? long count, |