Skip to content

Commit

Permalink
vim-patch:9.0.0265: no good reason why the "gf" command isn't in the …
Browse files Browse the repository at this point in the history
…tiny version (#20964)

Problem:    No good reason why the "gf" command is not in the tiny version.
Solution:   Graduate the file_in_path feature.

vim/vim@f80f40a

Co-authored-by: Bram Moolenaar <Bram@vim.org>
  • Loading branch information
zeertzjq and brammool committed Nov 6, 2022
1 parent c30226c commit a79d28e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/nvim/option.c
Original file line number Diff line number Diff line change
Expand Up @@ -4702,8 +4702,7 @@ void set_context_in_set_cmd(expand_T *xp, char_u *arg, int opt_flags)
|| p == (char_u *)&p_cdpath
|| p == (char_u *)&p_vdir) {
xp->xp_context = EXPAND_DIRECTORIES;
if (p == (char_u *)&p_path
|| p == (char_u *)&p_cdpath) {
if (p == (char_u *)&p_path || p == (char_u *)&p_cdpath) {
xp->xp_backslash = XP_BS_THREE;
} else {
xp->xp_backslash = XP_BS_ONE;
Expand Down
1 change: 0 additions & 1 deletion src/nvim/testdir/test_options.vim
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,6 @@ endfunc

" Test for the default CDPATH option
func Test_opt_default_cdpath()
CheckFeature file_in_path
let after =<< trim [CODE]
call assert_equal(',/path/to/dir1,/path/to/dir2', &cdpath)
call writefile(v:errors, 'Xtestout')
Expand Down
1 change: 1 addition & 0 deletions src/nvim/window.c
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,7 @@ void do_window(int nchar, long Prenum, int xchar)
cmdmod.cmod_tab = tabpage_index(curtab) + 1;
nchar = xchar;
goto wingotofile;

case 't': // CTRL-W gt: go to next tab page
goto_tabpage((int)Prenum);
break;
Expand Down

0 comments on commit a79d28e

Please sign in to comment.