# HG changeset patch # User Bram Moolenaar # Date 1651485603 -7200 # Node ID 91faff07670a9d14cd4d89b6b4bf18f94b6f379d # Parent d7e39c4eebd2b00f79a3cf1c809926ec2b813398 patch 8.2.4857: Yaml indent for multiline is wrong Commit: https://github.com/vim/vim/commit/f4f579b46b27f5e1689912a3e84c6a2a96efd143 Author: asmka Date: Mon May 2 10:46:49 2022 +0100 patch 8.2.4857: Yaml indent for multiline is wrong Problem: Yaml indent for multiline is wrong. Solution: Adjust patterns. (closes https://github.com/vim/vim/issues/10328, closes https://github.com/vim/vim/issues/8740) diff --git a/runtime/indent/testdir/yaml.in b/runtime/indent/testdir/yaml.in --- a/runtime/indent/testdir/yaml.in +++ b/runtime/indent/testdir/yaml.in @@ -17,3 +17,9 @@ map: val map: multiline value # END_INDENT + +# START_INDENT +map: | +line1 +line2 +# END_INDENT diff --git a/runtime/indent/testdir/yaml.ok b/runtime/indent/testdir/yaml.ok --- a/runtime/indent/testdir/yaml.ok +++ b/runtime/indent/testdir/yaml.ok @@ -17,3 +17,9 @@ map: val map: multiline value # END_INDENT + +# START_INDENT +map: | + line1 + line2 +# END_INDENT diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -747,6 +747,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4857, +/**/ 4856, /**/ 4855,