Mercurial > vim
comparison src/testdir/test_textobjects.vim @ 22604:3ac0ef0578ef v8.2.1850
patch 8.2.1850: "vat" does not select tags correctly over line break
Commit: https://github.com/vim/vim/commit/a604ccc959c3bff88d3d5bc3c965819fc326d239
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Oct 15 21:23:28 2020 +0200
patch 8.2.1850: "vat" does not select tags correctly over line break
Problem: "vat" does not select tags correctly over line break.
Solution: Adjust the search pattern. (Aufar Gilbran, closes https://github.com/vim/vim/issues/7136)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 15 Oct 2020 21:30:04 +0200 |
parents | cbc570e66d11 |
children | d4a710f06f02 |
comparison
equal
deleted
inserted
replaced
22603:d2c45a169cf2 | 22604:3ac0ef0578ef |
---|---|
166 " copy the outer tag block from a tag without an end tag | 166 " copy the outer tag block from a tag without an end tag |
167 let t = "<html>\n<title>welcome\n</html>" | 167 let t = "<html>\n<title>welcome\n</html>" |
168 $put =t | 168 $put =t |
169 normal! k$vaty | 169 normal! k$vaty |
170 call assert_equal("<html>\n<title>welcome\n</html>", @") | 170 call assert_equal("<html>\n<title>welcome\n</html>", @") |
171 | |
172 " nested tag that has < in a different line from > | |
173 let t = "<div><div\n></div></div>" | |
174 $put =t | |
175 normal! k0vaty | |
176 call assert_equal("<div><div\n></div></div>", @") | |
177 | |
178 " nested tag with attribute that has < in a different line from > | |
179 let t = "<div><div\nattr=\"attr\"\n></div></div>" | |
180 $put =t | |
181 normal! 2k0vaty | |
182 call assert_equal("<div><div\nattr=\"attr\"\n></div></div>", @") | |
171 | 183 |
172 set quoteescape& | 184 set quoteescape& |
173 enew! | 185 enew! |
174 endfunc | 186 endfunc |
175 | 187 |