summaryrefslogtreecommitdiff
path: root/src/option.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-07-17 23:08:29 +0200
committerBram Moolenaar <Bram@vim.org>2015-07-17 23:08:29 +0200
commit5cbb8dbc329ab33ce56ea7ce4695778630c4e9ee (patch)
treecb7354c01670e4e86057a17301d3db86bb2890df /src/option.c
parentfb9bc4829a1442fc8e93f078c9f923c9d382dbd2 (diff)
downloadvim-git-5cbb8dbc329ab33ce56ea7ce4695778630c4e9ee.tar.gz
patch 7.4.788v7.4.788
Problem: Can't build without the crypt feature. (John Marriott) Solution: Add #ifdef's.
Diffstat (limited to 'src/option.c')
-rw-r--r--src/option.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/option.c b/src/option.c
index 8b6393860..35cfd2b00 100644
--- a/src/option.c
+++ b/src/option.c
@@ -4918,7 +4918,10 @@ do_set(arg, opt_flags)
*(char_u **)(varp) = newval;
#if defined(FEAT_AUTOCMD) && defined(FEAT_EVAL)
- if (!starting && options[opt_idx].indir != PV_KEY
+ if (!starting
+# ifdef FEAT_CRYPT
+ && options[opt_idx].indir != PV_KEY
+# endif
&& origval != NULL)
/* origval may be freed by
* did_set_string_option(), make a copy. */
@@ -5717,7 +5720,11 @@ set_string_option(opt_idx, value, opt_flags)
*varp = s;
#if defined(FEAT_AUTOCMD) && defined(FEAT_EVAL)
- if (!starting && options[opt_idx].indir != PV_KEY)
+ if (!starting
+# ifdef FEAT_CRYPT
+ && options[opt_idx].indir != PV_KEY
+# endif
+ )
saved_oldval = vim_strsave(oldval);
#endif
if ((r = did_set_string_option(opt_idx, varp, TRUE, oldval, NULL,