mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 10:26:31 +00:00
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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user