0
0
mirror of https://github.com/vim/vim.git synced 2025-10-28 09:27:14 -04:00

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 #7136)
This commit is contained in:
Bram Moolenaar
2020-10-15 21:23:28 +02:00
parent ed234f24f3
commit a604ccc959
3 changed files with 16 additions and 2 deletions

View File

@@ -169,6 +169,18 @@ func Test_string_html_objects()
normal! k$vaty
call assert_equal("<html>\n<title>welcome\n</html>", @")
" nested tag that has < in a different line from >
let t = "<div><div\n></div></div>"
$put =t
normal! k0vaty
call assert_equal("<div><div\n></div></div>", @")
" nested tag with attribute that has < in a different line from >
let t = "<div><div\nattr=\"attr\"\n></div></div>"
$put =t
normal! 2k0vaty
call assert_equal("<div><div\nattr=\"attr\"\n></div></div>", @")
set quoteescape&
enew!
endfunc