summaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-04-06 20:18:50 +0000
committerBram Moolenaar <Bram@vim.org>2006-04-06 20:18:50 +0000
commit8dff818edfb61658b94128111234c3c074c1cadc (patch)
treeed09901efe925ec1b065c8dbd4cd94165b01cf6f /src/window.c
parent910f66f90c928da8b607ccfdc12fc33d9cb8d4a9 (diff)
updated for version 7.0c11
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/window.c b/src/window.c
index 677dcbec09..26003f37ae 100644
--- a/src/window.c
+++ b/src/window.c
@@ -482,14 +482,15 @@ newwindow:
case 'f':
case 'F':
case Ctrl_F:
+wingotofile:
CHECK_CMDWIN
ptr = grab_file_name(Prenum1, &lnum);
if (ptr != NULL)
{
-#ifdef FEAT_GUI
+# ifdef FEAT_GUI
need_mouse_correct = TRUE;
-#endif
+# endif
setpcmark();
if (win_split(0, 0) == OK)
{
@@ -592,6 +593,11 @@ newwindow:
do_nv_ident('g', xchar);
break;
+#ifdef FEAT_SEARCHPATH
+ case 'f': /* CTRL-W gf: "gf" in a new tab page */
+ cmdmod.tab = TRUE;
+ goto wingotofile;
+#endif
default:
beep_flush();
break;
@@ -3879,8 +3885,8 @@ win_enter_ext(wp, undo_sync, curwin_invalid)
setmouse(); /* in case jumped to/from help buffer */
#endif
-#if defined(FEAT_NETBEANS_INTG) || defined(FEAT_SUN_WORKSHOP)
- /* Change directories when the acd option is set on and after
+#ifdef FEAT_AUTOCHDIR
+ /* Change directories when the 'acd' option is set on and after
* switching windows. */
if (p_acd && curbuf->b_ffname != NULL
&& vim_chdirfile(curbuf->b_ffname) == OK)