mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 9.0.1454: code indenting is confused by macros
Problem: Code indenting is confused by macros. Solution: Put semicolon after the macros instead of inside. (Ozaki Kiichi, closes #12257)
This commit is contained in:
@@ -5641,8 +5641,7 @@ chk_modeline(
|
||||
int end;
|
||||
int retval = OK;
|
||||
sctx_T save_current_sctx;
|
||||
|
||||
ESTACK_CHECK_DECLARATION
|
||||
ESTACK_CHECK_DECLARATION;
|
||||
|
||||
prev = -1;
|
||||
for (s = ml_get(lnum); *s != NUL; ++s)
|
||||
@@ -5686,7 +5685,7 @@ chk_modeline(
|
||||
|
||||
// prepare for emsg()
|
||||
estack_push(ETYPE_MODELINE, (char_u *)"modelines", lnum);
|
||||
ESTACK_CHECK_SETUP
|
||||
ESTACK_CHECK_SETUP;
|
||||
|
||||
end = FALSE;
|
||||
while (end == FALSE)
|
||||
@@ -5747,7 +5746,7 @@ chk_modeline(
|
||||
s = e + 1; // advance to next part
|
||||
}
|
||||
|
||||
ESTACK_CHECK_NOW
|
||||
ESTACK_CHECK_NOW;
|
||||
estack_pop();
|
||||
vim_free(linecopy);
|
||||
}
|
||||
|
Reference in New Issue
Block a user