aboutsummaryrefslogtreecommitdiff
path: root/scripts/genoptions.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-08-04 20:59:51 -0400
committerGitHub <noreply@github.com>2016-08-04 20:59:51 -0400
commitfe6ec757257dccee88f03deb767bc3a1d86c2351 (patch)
tree2fe2320671d74367fb1f1951f836cd457278472e /scripts/genoptions.lua
parentd622e9c41635d9c0a65b8725e49ce476838d1aa2 (diff)
parent56fcabbd05b85388f2f5188fd1284bcff1ba67a2 (diff)
downloadrneovim-fe6ec757257dccee88f03deb767bc3a1d86c2351.tar.gz
rneovim-fe6ec757257dccee88f03deb767bc3a1d86c2351.tar.bz2
rneovim-fe6ec757257dccee88f03deb767bc3a1d86c2351.zip
Merge #4964 from ZyX-I/no-xdg-expand
option: Do not expand options, obtained from XDG vars
Diffstat (limited to 'scripts/genoptions.lua')
-rw-r--r--scripts/genoptions.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/genoptions.lua b/scripts/genoptions.lua
index da53d010bd..9f7d94969d 100644
--- a/scripts/genoptions.lua
+++ b/scripts/genoptions.lua
@@ -57,9 +57,14 @@ local get_flags = function(o)
add_flag(redraw_flags[r_flag])
end
end
+ if o.expand then
+ add_flag('P_EXPAND')
+ if o.expand == 'nodefault' then
+ add_flag('P_NO_DEF_EXP')
+ end
+ end
for _, flag_desc in ipairs({
{'alloced'},
- {'expand'},
{'nodefault'},
{'no_mkrc'},
{'vi_def'},