summaryrefslogtreecommitdiff
path: root/src/normal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-03-05 19:57:49 +0100
committerBram Moolenaar <Bram@vim.org>2015-03-05 19:57:49 +0100
commitb6c2735c56f1541159e1ad95c3f17a52b3a94f1d (patch)
tree6f0a5ed3e793823152c28b61635b16e3f8f88143 /src/normal.c
parenta245bc79b4c6b83a4b5b6cdb95c4d2165762a20b (diff)
downloadvim-git-b6c2735c56f1541159e1ad95c3f17a52b3a94f1d.tar.gz
updated for version 7.4.655v7.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)
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/normal.c b/src/normal.c
index 987705d4c..d173c737b 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -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 */