patch 9.0.0265: no good reason why the "gf" command isn't in the tiny version
Problem: No good reason why the "gf" command is not in the tiny version.
Solution: Graduate the file_in_path feature.
diff --git a/src/window.c b/src/window.c
index 3ee65fb..8c42b60 100644
--- a/src/window.c
+++ b/src/window.c
@@ -136,10 +136,8 @@
{
long Prenum1;
win_T *wp;
-#if defined(FEAT_SEARCHPATH) || defined(FEAT_FIND_ID)
char_u *ptr;
linenr_T lnum = -1;
-#endif
#ifdef FEAT_FIND_ID
int type = FIND_DEFINE;
int len;
@@ -521,7 +519,6 @@
do_nv_ident(Ctrl_RSB, NUL);
break;
-#ifdef FEAT_SEARCHPATH
// edit file name under cursor in a new window
case 'f':
case 'F':
@@ -534,9 +531,9 @@
{
tabpage_T *oldtab = curtab;
win_T *oldwin = curwin;
-# ifdef FEAT_GUI
+#ifdef FEAT_GUI
need_mouse_correct = TRUE;
-# endif
+#endif
setpcmark();
if (win_split(0, 0) == OK)
{
@@ -559,7 +556,6 @@
vim_free(ptr);
}
break;
-#endif
#ifdef FEAT_FIND_ID
// Go to the first occurrence of the identifier under cursor along path in a
@@ -637,13 +633,12 @@
do_nv_ident('g', xchar);
break;
-#ifdef FEAT_SEARCHPATH
case 'f': // CTRL-W gf: "gf" in a new tab page
case 'F': // CTRL-W gF: "gF" in a new tab page
cmdmod.cmod_tab = tabpage_index(curtab) + 1;
nchar = xchar;
goto wingotofile;
-#endif
+
case 't': // CTRL-W gt: go to next tab page
goto_tabpage((int)Prenum);
break;
@@ -713,11 +708,9 @@
#if defined(FEAT_QUICKFIX)
case '}':
#endif
-#ifdef FEAT_SEARCHPATH
case 'f':
case 'F':
case Ctrl_F:
-#endif
#ifdef FEAT_FIND_ID
case 'i':
case Ctrl_I: