diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-10-28 13:51:36 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-10-28 13:57:08 +0100 |
commit | dae1213e57da36aaa805425636d11712c746fe49 (patch) | |
tree | 74046abf006f00abd62579a97818747aeeaeab2e /runtime/autoload | |
parent | b9a6df58cc7674153728605f48029c4c7bbe1a84 (diff) | |
download | rneovim-dae1213e57da36aaa805425636d11712c746fe49.tar.gz rneovim-dae1213e57da36aaa805425636d11712c746fe49.tar.bz2 rneovim-dae1213e57da36aaa805425636d11712c746fe49.zip |
vim-patch:f0b03c4e98f8
Update runtime files
https://github.com/vim/vim/commit/f0b03c4e98f8a7184d8b4a5d702cbcd602426923
Note: haskell changes were included in 942f3587c38a83cf6486a0b779765b54a1648493
Diffstat (limited to 'runtime/autoload')
-rw-r--r-- | runtime/autoload/dist/ft.vim | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim index 2603c6822f..81fdc9d956 100644 --- a/runtime/autoload/dist/ft.vim +++ b/runtime/autoload/dist/ft.vim @@ -1,7 +1,7 @@ " Vim functions for file type detection " " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2017 Nov 11 +" Last Change: 2017 Dec 05 " These functions are moved here from runtime/filetype.vim to make startup " faster. @@ -618,7 +618,11 @@ func dist#ft#FTperl() setf perl return 1 endif - if search('^use\s\s*\k', 'nc', 30) + let save_cursor = getpos('.') + call cursor(1,1) + let has_use = search('^use\s\s*\k', 'c', 30) + call setpos('.', save_cursor) + if has_use setf perl return 1 endif |