mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
Add :nbstart and :nbclose.
This commit is contained in:
12
src/normal.c
12
src/normal.c
@@ -2730,7 +2730,7 @@ do_mouse(oap, c, dir, count, fixindent)
|
||||
#endif
|
||||
|
||||
#ifdef FEAT_NETBEANS_INTG
|
||||
if (usingNetbeans && isNetbeansBuffer(curbuf)
|
||||
if (isNetbeansBuffer(curbuf)
|
||||
&& !(jump_flags & (IN_STATUS_LINE | IN_SEP_LINE)))
|
||||
{
|
||||
int key = KEY2TERMCAP1(c);
|
||||
@@ -6914,12 +6914,12 @@ nv_replace(cap)
|
||||
++curwin->w_cursor.col;
|
||||
}
|
||||
#ifdef FEAT_NETBEANS_INTG
|
||||
if (usingNetbeans)
|
||||
if (netbeans_active())
|
||||
{
|
||||
colnr_T start = (colnr_T)(curwin->w_cursor.col - cap->count1);
|
||||
colnr_T start = (colnr_T)(curwin->w_cursor.col - cap->count1);
|
||||
|
||||
netbeans_removed(curbuf, curwin->w_cursor.lnum, start,
|
||||
(long)cap->count1);
|
||||
(long)cap->count1);
|
||||
netbeans_inserted(curbuf, curwin->w_cursor.lnum, start,
|
||||
&ptr[start], (int)cap->count1);
|
||||
}
|
||||
@@ -7110,7 +7110,7 @@ n_swapchar(cap)
|
||||
&& curwin->w_cursor.lnum < curbuf->b_ml.ml_line_count)
|
||||
{
|
||||
#ifdef FEAT_NETBEANS_INTG
|
||||
if (usingNetbeans)
|
||||
if (netbeans_active())
|
||||
{
|
||||
if (did_change)
|
||||
{
|
||||
@@ -7139,7 +7139,7 @@ n_swapchar(cap)
|
||||
}
|
||||
}
|
||||
#ifdef FEAT_NETBEANS_INTG
|
||||
if (did_change && usingNetbeans)
|
||||
if (did_change && netbeans_active())
|
||||
{
|
||||
ptr = ml_get(pos.lnum);
|
||||
count = curwin->w_cursor.col - pos.col;
|
||||
|
Reference in New Issue
Block a user