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 | |
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')
-rw-r--r-- | src/testdir/test_filetype.vim | 6 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 8 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 diff --git a/src/version.c b/src/version.c index fbe684a5af..ad1b686ea6 100644 --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1591, +/**/ 1590, /**/ 1589, |