diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-06 17:58:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-06 17:58:13 +0800 |
commit | a79d28e4d7939c13f38cf4ce63ff240011bca96d (patch) | |
tree | 7f3823088a6397a1ee42ec10b34e907a5f8e72a6 /src | |
parent | c30226c28b44f1eefd495f7345219b62662c0dbc (diff) | |
download | rneovim-a79d28e4d7939c13f38cf4ce63ff240011bca96d.tar.gz rneovim-a79d28e4d7939c13f38cf4ce63ff240011bca96d.tar.bz2 rneovim-a79d28e4d7939c13f38cf4ce63ff240011bca96d.zip |
vim-patch:9.0.0265: no good reason why the "gf" command isn't in the tiny version (#20964)
Problem: No good reason why the "gf" command is not in the tiny version.
Solution: Graduate the file_in_path feature.
https://github.com/vim/vim/commit/f80f40a55ccff0a4331c5fbd1ac446511f622ed0
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/option.c | 3 | ||||
-rw-r--r-- | src/nvim/testdir/test_options.vim | 1 | ||||
-rw-r--r-- | src/nvim/window.c | 1 |
3 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 306a63b74d..523ae13e52 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -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; diff --git a/src/nvim/testdir/test_options.vim b/src/nvim/testdir/test_options.vim index d689ece70d..db544e47b8 100644 --- a/src/nvim/testdir/test_options.vim +++ b/src/nvim/testdir/test_options.vim @@ -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') diff --git a/src/nvim/window.c b/src/nvim/window.c index c755f58c4f..10b366ce23 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -585,6 +585,7 @@ wingotofile: 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; |