mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 09:18:19 +00:00
vim-patch: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)
b6c2735c56
This commit is contained in:
@@ -7474,6 +7474,13 @@ static void nv_object(cmdarg_T *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