summaryrefslogtreecommitdiffstats
path: root/src/option.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-08-25 16:02:23 +0100
committerBram Moolenaar <Bram@vim.org>2022-08-25 16:02:23 +0100
commitf80f40a55ccff0a4331c5fbd1ac446511f622ed0 (patch)
tree6a43d76ea652831205c8df6439b98717a6425188 /src/option.c
parentb213703f358e1e10ba0affb3729c09ccb2c88ea3 (diff)
patch 9.0.0265: no good reason why the "gf" command isn't in the tiny versionv9.0.0265
Problem: No good reason why the "gf" command is not in the tiny version. Solution: Graduate the file_in_path feature.
Diffstat (limited to 'src/option.c')
-rw-r--r--src/option.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/option.c b/src/option.c
index f3c53b2282..05e0527cd3 100644
--- a/src/option.c
+++ b/src/option.c
@@ -220,7 +220,6 @@ set_init_1(int clean_arg)
}
}
-#ifdef FEAT_SEARCHPATH
{
char_u *cdpath;
char_u *buf;
@@ -262,7 +261,6 @@ set_init_1(int clean_arg)
vim_free(cdpath);
}
}
-#endif
#if defined(FEAT_POSTSCRIPT) && \
(defined(MSWIN) || defined(VMS) || defined(MAC) || defined(hpux))
@@ -5519,9 +5517,7 @@ get_varp(struct vimoption *p)
case PV_SI: return (char_u *)&(curbuf->b_p_si);
case PV_SN: return (char_u *)&(curbuf->b_p_sn);
case PV_STS: return (char_u *)&(curbuf->b_p_sts);
-#ifdef FEAT_SEARCHPATH
case PV_SUA: return (char_u *)&(curbuf->b_p_sua);
-#endif
case PV_SWF: return (char_u *)&(curbuf->b_p_swf);
#ifdef FEAT_SYN_HL
case PV_SMC: return (char_u *)&(curbuf->b_p_smc);
@@ -6080,10 +6076,8 @@ buf_copy_options(buf_T *buf, int flags)
buf->b_p_key = vim_strsave(p_key);
COPY_OPT_SCTX(buf, BV_KEY);
#endif
-#ifdef FEAT_SEARCHPATH
buf->b_p_sua = vim_strsave(p_sua);
COPY_OPT_SCTX(buf, BV_SUA);
-#endif
#ifdef FEAT_KEYMAP
buf->b_p_keymap = vim_strsave(p_keymap);
COPY_OPT_SCTX(buf, BV_KMAP);
@@ -6380,20 +6374,14 @@ set_context_in_set_cmd(
|| p == (char_u *)&p_path
|| p == (char_u *)&p_pp
|| p == (char_u *)&p_rtp
-#ifdef FEAT_SEARCHPATH
|| p == (char_u *)&p_cdpath
-#endif
#ifdef FEAT_SESSION
|| p == (char_u *)&p_vdir
#endif
)
{
xp->xp_context = EXPAND_DIRECTORIES;
- if (p == (char_u *)&p_path
-#ifdef FEAT_SEARCHPATH
- || p == (char_u *)&p_cdpath
-#endif
- )
+ if (p == (char_u *)&p_path || p == (char_u *)&p_cdpath)
xp->xp_backslash = XP_BS_THREE;
else
xp->xp_backslash = XP_BS_ONE;