]> granicus.if.org Git - vim/commitdiff
patch 8.2.1476: filetype test fails on MS-Windows v8.2.1476
authorBram Moolenaar <Bram@vim.org>
Mon, 17 Aug 2020 19:57:09 +0000 (21:57 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 17 Aug 2020 19:57:09 +0000 (21:57 +0200)
Problem:    Filetype test fails on MS-Windows.
Solution:   Remove "^" from pattern.

runtime/autoload/dist/ft.vim
src/version.c

index 84691b1e16082ba58025ea8544b6993864ed060e..5c94102318794d90151d584b2e82a9597e449d6e 100644 (file)
@@ -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
index 83af39602199b99ca65985b083908e811c33f077..734d2ba2ffc0aca3e737b4a9baf9a72b94f410c4 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1476,
 /**/
     1475,
 /**/