From 2ac7184d34cd01e2b76bd1f704fd6a4b4af10239 Mon Sep 17 00:00:00 2001 From: Yegappan Lakshmanan Date: Mon, 31 May 2021 19:23:01 +0200 Subject: patch 8.2.2916: operators are not fully tested Problem: Operators are not fully tested. Solution: Add a few more tests. (Yegappan Lakshmanan, closes #8290) --- src/ops.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ops.c') 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); } -- cgit v1.2.1