mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
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.
f80f40a55c
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -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_cdpath
|
||||||
|| p == (char_u *)&p_vdir) {
|
|| p == (char_u *)&p_vdir) {
|
||||||
xp->xp_context = EXPAND_DIRECTORIES;
|
xp->xp_context = EXPAND_DIRECTORIES;
|
||||||
if (p == (char_u *)&p_path
|
if (p == (char_u *)&p_path || p == (char_u *)&p_cdpath) {
|
||||||
|| p == (char_u *)&p_cdpath) {
|
|
||||||
xp->xp_backslash = XP_BS_THREE;
|
xp->xp_backslash = XP_BS_THREE;
|
||||||
} else {
|
} else {
|
||||||
xp->xp_backslash = XP_BS_ONE;
|
xp->xp_backslash = XP_BS_ONE;
|
||||||
|
@@ -895,7 +895,6 @@ endfunc
|
|||||||
|
|
||||||
" Test for the default CDPATH option
|
" Test for the default CDPATH option
|
||||||
func Test_opt_default_cdpath()
|
func Test_opt_default_cdpath()
|
||||||
CheckFeature file_in_path
|
|
||||||
let after =<< trim [CODE]
|
let after =<< trim [CODE]
|
||||||
call assert_equal(',/path/to/dir1,/path/to/dir2', &cdpath)
|
call assert_equal(',/path/to/dir1,/path/to/dir2', &cdpath)
|
||||||
call writefile(v:errors, 'Xtestout')
|
call writefile(v:errors, 'Xtestout')
|
||||||
|
@@ -585,6 +585,7 @@ wingotofile:
|
|||||||
cmdmod.cmod_tab = tabpage_index(curtab) + 1;
|
cmdmod.cmod_tab = tabpage_index(curtab) + 1;
|
||||||
nchar = xchar;
|
nchar = xchar;
|
||||||
goto wingotofile;
|
goto wingotofile;
|
||||||
|
|
||||||
case 't': // CTRL-W gt: go to next tab page
|
case 't': // CTRL-W gt: go to next tab page
|
||||||
goto_tabpage((int)Prenum);
|
goto_tabpage((int)Prenum);
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user