Mercurial > vim
annotate runtime/ftplugin/xslt.vim @ 29448:8f1e16995118 v9.0.0066
patch 9.0.0066: switching window uneccarily when getting buffer options
Commit: https://github.com/vim/vim/commit/cd6ad6439da2ee2d1a8a6934c9d69e9c2664ba55
Author: zeertzjq <zeertzjq@outlook.com>
Date: Mon Jul 25 12:28:09 2022 +0100
patch 9.0.0066: switching window uneccarily when getting buffer options
Problem: Switching window uneccarily when getting buffer options.
Solution: Do not switch window when getting buffer options. (closes https://github.com/vim/vim/issues/10767)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 25 Jul 2022 13:30:05 +0200 |
parents | 4d76b3e07c07 |
children | 8ae680be2a51 |
rev | line source |
---|---|
7 | 1 " Vim filetype plugin file |
28620 | 2 " Language: XSLT |
3 " Maintainer: Doug Kearns <dougkearns@gmail.com> | |
4 " Previous Maintainer: Dan Sharp | |
5 " Last Change: 2022 Apr 25 | |
7 | 6 |
28620 | 7 if exists("b:did_ftplugin") |
8 finish | |
9 endif | |
7 | 10 |
11 runtime! ftplugin/xml.vim ftplugin/xml_*.vim ftplugin/xml/*.vim | |
12 | |
13 let b:did_ftplugin = 1 | |
14 | |
15 " Change the :browse e filter to primarily show xsd-related files. | |
28620 | 16 if (has("gui_win32") || has("gui_gtk")) && exists("b:browsefilter") |
17 let b:browsefilter = "XSLT Files (*.xsl,*.xslt)\t*.xsl;*.xslt\n" . b:browsefilter | |
7 | 18 endif |