diff options
author | Omar El Halabi <omar.el.halabi@freiheit.com> | 2023-05-29 19:59:45 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-05-29 19:59:45 +0100 |
commit | c9fbd2560f24180d2efa40028ed68427341d2d99 (patch) | |
tree | e5d77e56c8a6eacabfdd5624918642b7c0198077 /src/testdir/test_filetype.vim | |
parent | 247caa378fc1121c99ecc594fab024691a6d7a9b (diff) |
patch 9.0.1591: some "gomod" files are not recognizedv9.0.1591
Problem: Some "gomod" files are not recognized.
Solution: Check for "go.mod" file name before checking out the contents.
(Omar El Halabi, closes #12462)
Diffstat (limited to 'src/testdir/test_filetype.vim')
-rw-r--r-- | src/testdir/test_filetype.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 96cb686863..0684383ee4 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -1534,6 +1534,12 @@ func Test_mod_file() bwipe! call delete('go.mod') + call writefile(['module M'], 'go.mod') + split go.mod + call assert_equal('gomod', &filetype) + bwipe! + call delete('go.mod') + filetype off endfunc |