1
0
forked from aniani/vim

patch 9.1.0865: filetype: org files are not recognized

Problem:  filetype: org files are not recognized
Solution: detect '*.org' files as 'org' filetype,
          include filetype and syntax plugin
          (Luca Saccarola)

closes: #16054

Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Luca Saccarola
2024-11-14 22:44:14 +01:00
committed by Christian Brabandt
parent 4bd9b2b246
commit 0684800c85
6 changed files with 130 additions and 1 deletions

View File

@@ -2724,4 +2724,14 @@ func Test_make_file()
filetype off
endfunc
func Test_org_file()
filetype on
call writefile(['* org Headline', '*some bold text*', '/some italic text/'], 'Xfile.org', 'D')
split Xfile.org
call assert_equal('org', &filetype)
filetype off
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
865,
/**/
864,
/**/