diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-10-29 09:27:07 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-10-29 09:29:17 +0100 |
commit | 9da951ad47c97175e1efa520e582a26f0db1e1cf (patch) | |
tree | c8578053ac6605ceaa2dab9dffe392d58e3be2f7 /runtime/autoload | |
parent | 633ae523f5cf414e23385d3de0aeced702d12a9f (diff) | |
download | rneovim-9da951ad47c97175e1efa520e582a26f0db1e1cf.tar.gz rneovim-9da951ad47c97175e1efa520e582a26f0db1e1cf.tar.bz2 rneovim-9da951ad47c97175e1efa520e582a26f0db1e1cf.zip |
vim-patch:0b0f0992d46e
Update runtime files.
https://github.com/vim/vim/commit/0b0f0992d46ef02fdfc1240744bef91d4299c1df
Diffstat (limited to 'runtime/autoload')
-rw-r--r-- | runtime/autoload/xmlformat.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/autoload/xmlformat.vim b/runtime/autoload/xmlformat.vim index b21eccd8e3..83ba49a073 100644 --- a/runtime/autoload/xmlformat.vim +++ b/runtime/autoload/xmlformat.vim @@ -1,5 +1,5 @@ " Vim plugin for formatting XML -" Last Change: Thu, 15 Jan 2015 21:26:55 +0100 +" Last Change: Thu, 22 May 2018 21:26:55 +0100 " Version: 0.1 " Author: Christian Brabandt <cb@256bit.org> " Script: http://www.vim.org/scripts/script.php?script_id= @@ -30,7 +30,7 @@ func! xmlformat#Format() let lastitem = prev ? getline(prev) : '' let is_xml_decl = 0 " split on `<`, but don't split on very first opening < - for item in split(getline(v:lnum), '.\@<=[>]\zs') + for item in split(join(getline(v:lnum, (v:lnum + v:count - 1))), '.\@<=[>]\zs') if s:EndTag(item) let s:indent = s:DecreaseIndent() call add(result, s:Indent(item)) |