diff src/scriptfile.c @ 35148:0ef2499e9812 v9.1.0403

patch 9.1.0403: Vim9: not able to import file from start dir Commit: https://github.com/vim/vim/commit/8c35c26c1f68950a75a1a93339410244fec23afc Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Fri May 10 13:10:54 2024 +0200 patch 9.1.0403: Vim9: not able to import file from start dir Problem: Vim9: not able to import file from start dir (Danielle McLean) Solution: Allow to import from start directory (Yegappan Lakshmanan) fixes: #13313 closes: #14740 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Fri, 10 May 2024 13:15:13 +0200
parents 323962c19623
children
line wrap: on
line diff
--- a/src/scriptfile.c
+++ b/src/scriptfile.c
@@ -682,7 +682,7 @@ find_script_in_rtp(char_u *name)
 {
     int sid = -1;
 
-    (void)do_in_path_and_pp(p_rtp, name, DIP_NOAFTER,
+    (void)do_in_path_and_pp(p_rtp, name, DIP_START | DIP_NOAFTER,
 						   find_script_callback, &sid);
     return sid;
 }