]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1194: filetype: false positive help filetype detection v9.1.1194
authorzeertzjq <zeertzjq@outlook.com>
Mon, 10 Mar 2025 20:30:29 +0000 (21:30 +0100)
committerChristian Brabandt <cb@256bit.org>
Mon, 10 Mar 2025 20:30:29 +0000 (21:30 +0100)
commit6763b0ee95e7e66ab7992653fbba48691e803e70
tree49890703769dc4f4da689a05ae28046f03fa2bf9
parentc2623824a7f38ef9cefc9d9ca016b897000a8db4
patch 9.1.1194: filetype: false positive help filetype detection

Problem:  filetype: false positive help filetype detection
Solution: Only detect a file as help if modeline appears either at start
          of line or is preceded by whitespace (zeertzjq).

closes: #16845

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c