comparison src/vim9script.c @ 27211:61d6a31a5874 v8.2.4134

patch 8.2.4134: MS-Windows: test for import with absolute path fails Commit: https://github.com/vim/vim/commit/113b8dc111febf605cd1492788353be6c3931fce Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 18 13:43:58 2022 +0000 patch 8.2.4134: MS-Windows: test for import with absolute path fails Problem: MS-Windows: test for import with absolute path fails. Solution: Handle path starting with slash as an absolute path.
author Bram Moolenaar <Bram@vim.org>
date Tue, 18 Jan 2022 14:45:05 +0100
parents 7b8e2bea0ec5
children 5b54f413d132
comparison
equal deleted inserted replaced
27210:307f23f40ccb 27211:61d6a31a5874
466 466
467 res = do_source(from_name, FALSE, DOSO_NONE, &sid); 467 res = do_source(from_name, FALSE, DOSO_NONE, &sid);
468 vim_free(from_name); 468 vim_free(from_name);
469 } 469 }
470 } 470 }
471 else if (mch_isFullName(tv.vval.v_string)) 471 else if (mch_isFullName(tv.vval.v_string)
472 #ifdef BACKSLASH_IN_FILENAME
473 // On MS-Windows omitting the drive is still handled like an
474 // absolute path, not using 'runtimepath'.
475 || *tv.vval.v_string == '/' || *tv.vval.v_string == '\\'
476 #endif
477 )
472 { 478 {
473 // Absolute path: "/tmp/name.vim" 479 // Absolute path: "/tmp/name.vim"
474 if (is_autoload) 480 if (is_autoload)
475 res = FAIL; 481 res = FAIL;
476 else 482 else