When gvim is started with two '-nb' command line options, the global
variable 'usingNetbeans' has a value of 2, and the following condition
in ex_cmds.c is always false:

    usingNetbeans & ((flags & ECMD_SET_HELP) != ECMD_SET_HELP)

since 2 & 1 equals 0, and 2 & 0 equals 0.

As a result, some of the netbeans 'fileOpened' events are not sent.
The following patch replaces the bit-string operator '&', with the
boolean operator '&&':


=====================================================================
*** ex_cmds.c.orig      2007-08-20 20:41:18.000000000 +0200
--- ex_cmds.c   2007-08-20 20:41:30.000000000 +0200
***************
*** 3754,3760 ****
            workshop_file_opened((char *)curbuf->b_ffname, curbuf->b_p_ro);
  # endif
  # ifdef FEAT_NETBEANS_INTG
!       if (usingNetbeans & ((flags & ECMD_SET_HELP) != ECMD_SET_HELP))
            netbeans_file_opened(curbuf);
  # endif
      }
--- 3754,3760 ----
            workshop_file_opened((char *)curbuf->b_ffname, curbuf->b_p_ro);
  # endif
  # ifdef FEAT_NETBEANS_INTG
!       if (usingNetbeans && ((flags & ECMD_SET_HELP) != ECMD_SET_HELP))
            netbeans_file_opened(curbuf);
  # endif
      }
=====================================================================


Xavier

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui