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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user