Loading ...
Sorry, an error occurred while loading the content.

Patch 7.3.1180

Expand Messages
  • Bram Moolenaar
    Patch 7.3.1180 Problem: When current directory changes, path from cscope may no longer be valid. (AS Budden) Solution: Always store the absolute path.
    Message 1 of 1 , Jun 12, 2013
    • 0 Attachment
      Patch 7.3.1180
      Problem: When current directory changes, path from cscope may no longer be
      valid. (AS Budden)
      Solution: Always store the absolute path. (Christian Brabandt)
      Files: src/if_cscope.c


      *** ../vim-7.3.1179/src/if_cscope.c 2013-05-29 19:17:55.000000000 +0200
      --- src/if_cscope.c 2013-06-12 21:15:37.000000000 +0200
      ***************
      *** 539,550 ****
      --- 539,565 ----
      char *fname2 = NULL;
      char *ppath = NULL;
      int i;
      + #ifdef FEAT_MODIFY_FNAME
      + int len;
      + int usedlen = 0;
      + char_u *fbuf = NULL;
      + #endif

      /* get the filename (arg1), expand it, and try to stat it */
      if ((fname = (char *)alloc(MAXPATHL + 1)) == NULL)
      goto add_err;

      expand_env((char_u *)arg1, (char_u *)fname, MAXPATHL);
      + #ifdef FEAT_MODIFY_FNAME
      + len = (int)STRLEN(fname);
      + fbuf = (char_u *)fname;
      + (void)modify_fname((char_u *)":p", &usedlen,
      + (char_u **)&fname, &fbuf, &len);
      + if (fname == NULL)
      + goto add_err;
      + fname = (char *)vim_strnsave((char_u *)fname, len);
      + vim_free(fbuf);
      + #endif
      ret = stat(fname, &statbuf);
      if (ret < 0)
      {
      *** ../vim-7.3.1179/src/version.c 2013-06-12 21:00:18.000000000 +0200
      --- src/version.c 2013-06-12 21:05:27.000000000 +0200
      ***************
      *** 730,731 ****
      --- 730,733 ----
      { /* Add new patch number below this line */
      + /**/
      + 1180,
      /**/

      --
      If Microsoft would build a car...
      ... Occasionally, executing a maneuver such as a left turn
      would cause your car to shut down and refuse to restart, in
      which case you would have to reinstall the engine.

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ an exciting new programming language -- http://www.Zimbu.org ///
      \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

      --
      --
      You received this message from the "vim_dev" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php

      ---
      You received this message because you are subscribed to the Google Groups "vim_dev" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    Your message has been successfully submitted and would be delivered to recipients shortly.