Mercurial > vim
diff runtime/indent/html.vim @ 23305:fab58304f77d
Update runtime files.
Commit: https://github.com/vim/vim/commit/4072ba571babd733d1800c082416fe8fe3c28ed7
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Dec 23 13:56:35 2020 +0100
Update runtime files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 23 Dec 2020 14:00:04 +0100 |
parents | 21fb2a3ad3ca |
children | 5b37a0bf7e3a |
line wrap: on
line diff
--- a/runtime/indent/html.vim +++ b/runtime/indent/html.vim @@ -1,7 +1,7 @@ " Vim indent script for HTML " Maintainer: Bram Moolenaar " Original Author: Andy Wokula <anwoku@yahoo.de> -" Last Change: 2020 Jul 06 +" Last Change: 2020 Dec 11 " Version: 1.0 "{{{ " Description: HTML indent script with cached state for faster indenting on a " range of lines. @@ -815,7 +815,7 @@ func! s:Alien5() let idx = match(prevtext, '^\s*\zs<!--') if idx >= 0 " just below comment start, add a shiftwidth - return idx + shiftwidth() + return indent(prevlnum) + shiftwidth() endif " Some files add 4 spaces just below a TODO line. It's difficult to detect