From 11f03ee3f3da623440607220b8167a3b797d9daa Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sun, 31 Mar 2019 07:29:16 -0400 Subject: [PATCH] vim-patch:8.1.1095: win: executable() on very long name #9820 Problem: MS-Windows: executable() fails on very long filename. Solution: (Ken Takata, closes vim/vim#4015) https://github.com/vim/vim/commit/8662189736e6cefb3fe852728adb5341f83973cf --- src/nvim/testdir/test_functions.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/nvim/testdir/test_functions.vim b/src/nvim/testdir/test_functions.vim index c0faf1acdc..13e2dcf804 100644 --- a/src/nvim/testdir/test_functions.vim +++ b/src/nvim/testdir/test_functions.vim @@ -889,6 +889,17 @@ func Test_Executable() endif endfunc +func Test_executable_longname() + if !has('win32') + return + endif + + let fname = 'X' . repeat('あ', 200) . '.bat' + call writefile([], fname) + call assert_equal(1, executable(fname)) + call delete(fname) +endfunc + func Test_hostname() let hostname_vim = hostname() if has('unix')