aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/private/helpers.h
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2020-04-26 02:52:39 -0400
committerGitHub <noreply@github.com>2020-04-26 02:52:39 -0400
commit3de9452abf182519fd9a015fe489a37d14aa78d9 (patch)
treebf088b92858967ae791579bbc9faf39800207302 /src/nvim/api/private/helpers.h
parent68511924d02af03812ae4b56aea6d94009f8096e (diff)
parent4d8b66e4978f6a7b59e35ac27ec0d96c0ebc011a (diff)
downloadrneovim-3de9452abf182519fd9a015fe489a37d14aa78d9.tar.gz
rneovim-3de9452abf182519fd9a015fe489a37d14aa78d9.tar.bz2
rneovim-3de9452abf182519fd9a015fe489a37d14aa78d9.zip
Merge #12177 'folds: decrease reliance on globals'
Diffstat (limited to 'src/nvim/api/private/helpers.h')
-rw-r--r--src/nvim/api/private/helpers.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/api/private/helpers.h b/src/nvim/api/private/helpers.h
index 048b937136..df3a263dcf 100644
--- a/src/nvim/api/private/helpers.h
+++ b/src/nvim/api/private/helpers.h
@@ -63,8 +63,8 @@
#define FIXED_TEMP_ARRAY(name, fixsize) \
Array name = ARRAY_DICT_INIT; \
Object name##__items[fixsize]; \
- args.size = fixsize; \
- args.items = name##__items; \
+ name.size = fixsize; \
+ name.items = name##__items; \
#define STATIC_CSTR_AS_STRING(s) ((String) {.data = s, .size = sizeof(s) - 1})