0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

updated for version 7.4.655

Problem:    Text deleted by "dit" depends on indent of closing tag.
            (Jan Parthey)
Solution:   Do not adjust oap->end in do_pending_operator(). (Christian
            Brabandt)
This commit is contained in:
Bram Moolenaar
2015-03-05 19:57:49 +01:00
parent a245bc79b4
commit b6c2735c56
5 changed files with 27 additions and 4 deletions

View File

@@ -9198,6 +9198,14 @@ nv_object(cap)
flag = current_block(cap->oap, cap->count1, include, '<', '>');
break;
case 't': /* "at" = a tag block (xml and html) */
/* Do not adjust oap->end in do_pending_operator()
* otherwise there are different results for 'dit'
* (note leading whitespace in last line):
* 1) <b> 2) <b>
* foobar foobar
* </b> </b>
*/
cap->retval |= CA_NO_ADJ_OP_END;
flag = current_tagblock(cap->oap, cap->count1, include);
break;
case 'p': /* "ap" = a paragraph */