On Wed, Nov 2, 2011 at 2:32 PM, zrth <[email protected]> wrote:
> Hello,
>
> If I use "vat" with the cursor on <list> it selects the "root" element
> instead of "list". The same goes for "it".
> It selects the contents of "root" and not the contents of "list" (as
> expected). I guess the problem is that the parent element's name is a
> substring of the child's name.

This was fixed in patch 7.3.331:

changeset:   3290:4b8c614c1c91
tag:         v7-3-331
user:        Bram Moolenaar <[email protected]>
date:        Tue Oct 04 17:00:20 2011 +0200
files:       src/search.c src/version.c
description:
updated for version 7.3.331
Problem:    "vit" selects wrong text when a tag name starts with the same text
       as an outer tag name. (Ben Fritz)
Solution:   Add "\>" to the pattern to check for word boundary.

Cheers,
-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James McCoy <[email protected]>
-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James McCoy <[email protected]>

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui