summaryrefslogtreecommitdiff
path: root/src/ops.c
diff options
context:
space:
mode:
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);
}