diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-08-17 21:57:09 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-08-17 21:57:09 +0200 |
commit | aa9675a61d510c4a56c3845d05b32b1ef780d119 (patch) | |
tree | 3aa6d8244903bfb4a7e20b4b4642f0cb8967cd41 /runtime/autoload | |
parent | 36967b32fd02eaab4273c1a1e7a1210a5fe45d09 (diff) |
patch 8.2.1476: filetype test fails on MS-Windowsv8.2.1476
Problem: Filetype test fails on MS-Windows.
Solution: Remove "^" from pattern.
Diffstat (limited to 'runtime/autoload')
-rw-r--r-- | runtime/autoload/dist/ft.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim index 84691b1e16..5c94102318 100644 --- a/runtime/autoload/dist/ft.vim +++ b/runtime/autoload/dist/ft.vim @@ -575,7 +575,7 @@ endfunc let s:ft_rules_udev_rules_pattern = '^\s*\cudev_rules\s*=\s*"\([^"]\{-1,}\)/*".*' func dist#ft#FTRules() let path = expand('<amatch>:p') - if path =~ '^/\(etc/udev/\%(rules\.d/\)\=.*\.rules\|\%(usr/\)\=lib/udev/\%(rules\.d/\)\=.*\.rules\)$' + if path =~ '/\(etc/udev/\%(rules\.d/\)\=.*\.rules\|\%(usr/\)\=lib/udev/\%(rules\.d/\)\=.*\.rules\)$' setf udevrules return endif |