diff options
Diffstat (limited to 'src/textobject.c')
-rw-r--r-- | src/textobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/textobject.c b/src/textobject.c index 23bdc96660..2d5d5ddfbc 100644 --- a/src/textobject.c +++ b/src/textobject.c @@ -1347,7 +1347,7 @@ again: curwin->w_cursor = old_pos; goto theend; } - spat = alloc(len + 31); + spat = alloc(len + 39); epat = alloc(len + 9); if (spat == NULL || epat == NULL) { @@ -1356,7 +1356,7 @@ again: curwin->w_cursor = old_pos; goto theend; } - sprintf((char *)spat, "<%.*s\\>\\%%(\\s\\_[^>]\\{-}[^/]>\\|>\\)\\c", len, p); + sprintf((char *)spat, "<%.*s\\>\\%%(\\_s\\_[^>]\\{-}\\_[^/]>\\|\\_s\\?>\\)\\c", len, p); sprintf((char *)epat, "</%.*s>\\c", len, p); r = do_searchpair(spat, (char_u *)"", epat, FORWARD, NULL, |