To: vim_dev@googlegroups.com Subject: Patch 8.2.4134 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.4134 Problem: MS-Windows: test for import with absolute path fails. Solution: Handle path starting with slash as an absolute path. Files: src/vim9script.c *** ../vim-8.2.4133/src/vim9script.c 2022-01-18 13:14:44.069194847 +0000 --- src/vim9script.c 2022-01-18 13:40:30.007462370 +0000 *************** *** 468,474 **** vim_free(from_name); } } ! else if (mch_isFullName(tv.vval.v_string)) { // Absolute path: "/tmp/name.vim" if (is_autoload) --- 468,480 ---- vim_free(from_name); } } ! else if (mch_isFullName(tv.vval.v_string) ! #ifdef BACKSLASH_IN_FILENAME ! // On MS-Windows omitting the drive is still handled like an ! // absolute path, not using 'runtimepath'. ! || *tv.vval.v_string == '/' || *tv.vval.v_string == '\\' ! #endif ! ) { // Absolute path: "/tmp/name.vim" if (is_autoload) *** ../vim-8.2.4133/src/version.c 2022-01-18 13:34:01.607865571 +0000 --- src/version.c 2022-01-18 13:41:56.571374048 +0000 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 4134, /**/ -- ARTHUR: What? BLACK KNIGHT: None shall pass. ARTHUR: I have no quarrel with you, good Sir knight, but I must cross this bridge. BLACK KNIGHT: Then you shall die. The Quest for the Holy Grail (Monty Python) /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///