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)
6f4700233f
This commit is contained in:
Jan Edmund Lazo
2019-06-25 22:38:13 -04:00
parent 62c7fcbdab
commit 2d6c91ab99
4 changed files with 81 additions and 58 deletions

View File

@@ -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,