To: vim_dev@googlegroups.com Subject: Patch 8.2.1776 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.1776 Problem: Filetype.vim may be loaded twice. Solution: Do "syntax on" after "filetype on". (Adam Stankiewicz, closes #7049) Files: runtime/defaults.vim *** ../vim-8.2.1775/runtime/defaults.vim 2019-10-27 18:41:21.000000000 +0100 --- runtime/defaults.vim 2020-09-30 22:42:55.391841318 +0200 *************** *** 85,101 **** endif endif - " Switch syntax highlighting on when the terminal has colors or when using the - " GUI (which always has colors). - if &t_Co > 2 || has("gui_running") - " Revert with ":syntax off". - syntax on - - " I like highlighting strings inside C comments. - " Revert with ":unlet c_comment_strings". - let c_comment_strings=1 - endif - " Only do this part when Vim was compiled with the +eval feature. if 1 --- 85,90 ---- *************** *** 124,129 **** --- 113,129 ---- endif + " Switch syntax highlighting on when the terminal has colors or when using the + " GUI (which always has colors). + if &t_Co > 2 || has("gui_running") + " Revert with ":syntax off". + syntax on + + " I like highlighting strings inside C comments. + " Revert with ":unlet c_comment_strings". + let c_comment_strings=1 + endif + " Convenient command to see the difference between the current buffer and the " file it was loaded from, thus the changes you made. " Only define it when not defined already. *** ../vim-8.2.1775/src/version.c 2020-09-29 22:46:59.955728630 +0200 --- src/version.c 2020-09-30 22:44:26.835527604 +0200 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 1776, /**/ -- hundred-and-one symptoms of being an internet addict: 27. You refer to your age as 3.x. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///