updated for version 7.0020
This commit is contained in:
@ -5570,6 +5570,10 @@ f_has(argvars, retvar)
|
||||
#if defined(WIN3264)
|
||||
else if (STRICMP(name, "win95") == 0)
|
||||
n = mch_windows95();
|
||||
#endif
|
||||
#ifdef FEAT_NETBEANS_INTG
|
||||
else if (STRICMP(name, "netbeans_enabled") == 0)
|
||||
n = usingNetbeans;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@ -3208,8 +3208,8 @@ do_ecmd(fnum, ffname, sfname, eap, newlnum, flags)
|
||||
workshop_file_opened((char *)curbuf->b_ffname, curbuf->b_p_ro);
|
||||
# endif
|
||||
# ifdef FEAT_NETBEANS_INTG
|
||||
if (usingNetbeans)
|
||||
netbeans_file_opened((char *)curbuf->b_ffname);
|
||||
if (usingNetbeans & ((flags & ECMD_SET_HELP) != ECMD_SET_HELP))
|
||||
netbeans_file_opened(curbuf);
|
||||
# endif
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -524,6 +524,8 @@ EX(CMD_mzfile, "mzfile", ex_mzfile,
|
||||
RANGE|FILE1|NEEDARG|CMDWIN),
|
||||
EX(CMD_next, "next", ex_next,
|
||||
RANGE|NOTADR|BANG|FILES|EDITCMD|ARGOPT|TRLBAR),
|
||||
EX(CMD_nbkey, "nbkey", ex_nbkey,
|
||||
EXTRA|NOTADR|NEEDARG),
|
||||
EX(CMD_new, "new", ex_splitview,
|
||||
BANG|FILE1|RANGE|NOTADR|EDITCMD|ARGOPT|TRLBAR),
|
||||
EX(CMD_nmap, "nmap", ex_map,
|
||||
|
||||
@ -3309,11 +3309,6 @@ gui_mch_init(void)
|
||||
/* Pretend we don't have input focus, we will get an event if we do. */
|
||||
gui.in_focus = FALSE;
|
||||
|
||||
#ifdef FEAT_NETBEANS_INTG
|
||||
if (usingNetbeans)
|
||||
netbeans_gtk_connect();
|
||||
# endif
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
@ -1540,10 +1540,6 @@ gui_mch_init()
|
||||
if (usingSunWorkShop)
|
||||
workshop_connect(app_context);
|
||||
#endif
|
||||
#ifdef FEAT_NETBEANS_INTG
|
||||
if (usingNetbeans)
|
||||
netbeans_Xt_connect(app_context);
|
||||
#endif
|
||||
|
||||
#ifdef FEAT_BEVAL
|
||||
gui_init_tooltip_font();
|
||||
|
||||
14
src/main.c
14
src/main.c
@ -1255,6 +1255,20 @@ scripterror:
|
||||
#endif
|
||||
)
|
||||
{
|
||||
#ifdef NBDEBUG
|
||||
/*
|
||||
* This shouldn't be necessary. But if I run netbeans with the log
|
||||
* output coming to the console and XOpenDisplay fails, I get vim
|
||||
* trying to start with input/output to my console tty. This fills my
|
||||
* input buffer so fast I can't even kill the process in under 2
|
||||
* minutes (and it beeps continuosly the whole time :-)
|
||||
*/
|
||||
if (usingNetbeans && (!stdout_isatty || !input_isatty))
|
||||
{
|
||||
mch_errmsg(_("Vim: Error: Failure to start gvim from NetBeans\n"));
|
||||
exit(1);
|
||||
}
|
||||
#endif
|
||||
if (!stdout_isatty)
|
||||
mch_errmsg(_("Vim: Warning: Output is not to a terminal\n"));
|
||||
if (!input_isatty)
|
||||
|
||||
@ -2462,8 +2462,8 @@ ml_append_int(buf, lnum, line, len, newfile, mark)
|
||||
if (usingNetbeans)
|
||||
{
|
||||
if (STRLEN(line) > 0)
|
||||
netbeans_inserted(buf, lnum+1, (colnr_T)0, 0, line, STRLEN(line));
|
||||
netbeans_inserted(buf, lnum+1, (colnr_T)STRLEN(line), 0,
|
||||
netbeans_inserted(buf, lnum+1, (colnr_T)0, line, STRLEN(line));
|
||||
netbeans_inserted(buf, lnum+1, (colnr_T)STRLEN(line),
|
||||
(char_u *)"\n", 1);
|
||||
}
|
||||
#endif
|
||||
@ -2500,7 +2500,7 @@ ml_replace(lnum, line, copy)
|
||||
if (usingNetbeans)
|
||||
{
|
||||
netbeans_removed(curbuf, lnum, 0, (long)STRLEN(ml_get(lnum)));
|
||||
netbeans_inserted(curbuf, lnum, 0, 0, line, STRLEN(line));
|
||||
netbeans_inserted(curbuf, lnum, 0, line, STRLEN(line));
|
||||
}
|
||||
#endif
|
||||
if (curbuf->b_ml.ml_line_lnum != lnum) /* other line buffered */
|
||||
@ -2605,7 +2605,7 @@ ml_delete_int(buf, lnum, message)
|
||||
|
||||
#ifdef FEAT_NETBEANS_INTG
|
||||
if (usingNetbeans)
|
||||
netbeans_removed(buf, lnum, 0, line_size);
|
||||
netbeans_removed(buf, lnum, 0, (long)line_size);
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user