From 16c31fe1b710e415da676379a5e397afe8bbbd5b Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 26 Jan 2012 20:58:26 +0100 Subject: [PATCH] updated for version 7.3.420 Problem: "it" and "at" don't work properly with a dash in the tag name. Solution: Require a space to match the tag name. (Christian Brabandt) --- src/search.c | 4 ++-- src/version.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/search.c b/src/search.c index c9d4b5ea26..b29551dab6 100644 --- a/src/search.c +++ b/src/search.c @@ -3918,7 +3918,7 @@ again: curwin->w_cursor = old_pos; goto theend; } - spat = alloc(len + 29); + spat = alloc(len + 31); epat = alloc(len + 9); if (spat == NULL || epat == NULL) { @@ -3927,7 +3927,7 @@ again: curwin->w_cursor = old_pos; goto theend; } - sprintf((char *)spat, "<%.*s\\>\\%%(\\_[^>]\\{-}[^/]>\\|>\\)\\c", len, p); + sprintf((char *)spat, "<%.*s\\>\\%%(\\s\\_[^>]\\{-}[^/]>\\|>\\)\\c", len, p); sprintf((char *)epat, "\\c", len, p); r = do_searchpair(spat, (char_u *)"", epat, FORWARD, (char_u *)"", diff --git a/src/version.c b/src/version.c index 8f5052b5d9..9f319837af 100644 --- a/src/version.c +++ b/src/version.c @@ -714,6 +714,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 420, /**/ 419, /**/ -- 2.47.3