summaryrefslogtreecommitdiff
path: root/src/ops.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-05-22 21:34:09 +0200
committerBram Moolenaar <Bram@vim.org>2010-05-22 21:34:09 +0200
commitb26e6327e69ed57c897d59183a4171c5eb979c19 (patch)
tree523c56a73826b7917ebe46580ce7936f86556aae /src/ops.c
parent67c53844343011089e1b847200b5c5257a83e1c4 (diff)
downloadvim-git-b26e6327e69ed57c897d59183a4171c5eb979c19.tar.gz
Add :nbstart and :nbclose.
Diffstat (limited to 'src/ops.c')
-rw-r--r--src/ops.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ops.c b/src/ops.c
index 606ce071b..323375013 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -2249,14 +2249,14 @@ op_tilde(oap)
did_change |= one_change;
# ifdef FEAT_NETBEANS_INTG
- if (usingNetbeans && one_change)
+ if (netbeans_active() && one_change)
{
char_u *ptr = ml_get_buf(curbuf, pos.lnum, FALSE);
netbeans_removed(curbuf, pos.lnum, bd.textcol,
(long)bd.textlen);
netbeans_inserted(curbuf, pos.lnum, bd.textcol,
- &ptr[bd.textcol], bd.textlen);
+ &ptr[bd.textcol], bd.textlen);
}
# endif
}
@@ -2294,7 +2294,7 @@ op_tilde(oap)
changed_lines(oap->start.lnum, oap->start.col, oap->end.lnum + 1,
0L);
#ifdef FEAT_NETBEANS_INTG
- if (usingNetbeans && did_change)
+ if (netbeans_active() && did_change)
{
char_u *ptr;
int count;
@@ -2306,7 +2306,7 @@ op_tilde(oap)
count = (int)STRLEN(ptr) - pos.col;
netbeans_removed(curbuf, pos.lnum, pos.col, (long)count);
netbeans_inserted(curbuf, pos.lnum, pos.col,
- &ptr[pos.col], count);
+ &ptr[pos.col], count);
pos.col = 0;
pos.lnum++;
}
@@ -2314,7 +2314,7 @@ op_tilde(oap)
count = oap->end.col - pos.col + 1;
netbeans_removed(curbuf, pos.lnum, pos.col, (long)count);
netbeans_inserted(curbuf, pos.lnum, pos.col,
- &ptr[pos.col], count);
+ &ptr[pos.col], count);
}
#endif
}