aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index c6bd17c04f..c3e561ed4e 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -1964,7 +1964,7 @@ void set_init_1(void)
/* First time count the NUL, otherwise count the ','. */
len = (int)STRLEN(p) + 3;
ga_grow(&ga, len);
- if (ga.ga_len > 0)
+ if (!GA_EMPTY(&ga))
STRCAT(ga.ga_data, ",");
STRCAT(ga.ga_data, p);
add_pathsep(ga.ga_data);