aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/syntax.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/syntax.c')
-rw-r--r--src/nvim/syntax.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c
index 6fc62aed9a..c1fb1d50ba 100644
--- a/src/nvim/syntax.c
+++ b/src/nvim/syntax.c
@@ -2376,12 +2376,12 @@ static void check_state_ends(void)
pop_current_state();
- if (current_state.ga_len == 0)
+ if (GA_EMPTY(&current_state))
break;
if (had_extend && keepend_level >= 0) {
syn_update_ends(FALSE);
- if (current_state.ga_len == 0)
+ if (GA_EMPTY(&current_state))
break;
}