summaryrefslogtreecommitdiff
path: root/src/ops.c
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2021-05-31 19:23:01 +0200
committerBram Moolenaar <Bram@vim.org>2021-05-31 19:23:01 +0200
commit2ac7184d34cd01e2b76bd1f704fd6a4b4af10239 (patch)
treefcabc6d151a256f814e20bcf197b41e5aa4a4a5e /src/ops.c
parentef8706fb84cfe8bd58b1b26b0742e42caf09655b (diff)
downloadvim-git-2ac7184d34cd01e2b76bd1f704fd6a4b4af10239.tar.gz
patch 8.2.2916: operators are not fully testedv8.2.2916
Problem: Operators are not fully tested. Solution: Add a few more tests. (Yegappan Lakshmanan, closes #8290)
Diffstat (limited to 'src/ops.c')
-rw-r--r--src/ops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ops.c b/src/ops.c
index e4590a1e7..87fb2a05b 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -2383,9 +2383,10 @@ op_addsub(
#ifdef FEAT_NETBEANS_INTG
if (netbeans_active() && one_change)
{
- char_u *ptr = ml_get_buf(curbuf, pos.lnum, FALSE);
+ char_u *ptr;
netbeans_removed(curbuf, pos.lnum, pos.col, (long)length);
+ ptr = ml_get_buf(curbuf, pos.lnum, FALSE);
netbeans_inserted(curbuf, pos.lnum, pos.col,
&ptr[pos.col], length);
}