Karsten Hopp 619ee4
To: vim_dev@googlegroups.com
Karsten Hopp 619ee4
Subject: Patch 7.3.1180
Karsten Hopp 619ee4
Fcc: outbox
Karsten Hopp 619ee4
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 619ee4
Mime-Version: 1.0
Karsten Hopp 619ee4
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 619ee4
Content-Transfer-Encoding: 8bit
Karsten Hopp 619ee4
------------
Karsten Hopp 619ee4
Karsten Hopp 619ee4
Patch 7.3.1180
Karsten Hopp 619ee4
Problem:    When current directory changes, path from cscope may no longer be
Karsten Hopp 619ee4
	    valid. (AS Budden)
Karsten Hopp 619ee4
Solution:   Always store the absolute path. (Christian Brabandt)
Karsten Hopp 619ee4
Files:	    src/if_cscope.c
Karsten Hopp 619ee4
Karsten Hopp 619ee4
Karsten Hopp 619ee4
*** ../vim-7.3.1179/src/if_cscope.c	2013-05-29 19:17:55.000000000 +0200
Karsten Hopp 619ee4
--- src/if_cscope.c	2013-06-12 21:15:37.000000000 +0200
Karsten Hopp 619ee4
***************
Karsten Hopp 619ee4
*** 539,550 ****
Karsten Hopp 619ee4
--- 539,565 ----
Karsten Hopp 619ee4
      char	*fname2 = NULL;
Karsten Hopp 619ee4
      char	*ppath = NULL;
Karsten Hopp 619ee4
      int		i;
Karsten Hopp 619ee4
+ #ifdef FEAT_MODIFY_FNAME
Karsten Hopp 619ee4
+     int		len;
Karsten Hopp 619ee4
+     int		usedlen = 0;
Karsten Hopp 619ee4
+     char_u	*fbuf = NULL;
Karsten Hopp 619ee4
+ #endif
Karsten Hopp 619ee4
  
Karsten Hopp 619ee4
      /* get the filename (arg1), expand it, and try to stat it */
Karsten Hopp 619ee4
      if ((fname = (char *)alloc(MAXPATHL + 1)) == NULL)
Karsten Hopp 619ee4
  	goto add_err;
Karsten Hopp 619ee4
  
Karsten Hopp 619ee4
      expand_env((char_u *)arg1, (char_u *)fname, MAXPATHL);
Karsten Hopp 619ee4
+ #ifdef FEAT_MODIFY_FNAME
Karsten Hopp 619ee4
+     len = (int)STRLEN(fname);
Karsten Hopp 619ee4
+     fbuf = (char_u *)fname;
Karsten Hopp 619ee4
+     (void)modify_fname((char_u *)":p", &usedlen,
Karsten Hopp 619ee4
+ 					      (char_u **)&fname, &fbuf, &len;;
Karsten Hopp 619ee4
+     if (fname == NULL)
Karsten Hopp 619ee4
+ 	goto add_err;
Karsten Hopp 619ee4
+     fname = (char *)vim_strnsave((char_u *)fname, len);
Karsten Hopp 619ee4
+     vim_free(fbuf);
Karsten Hopp 619ee4
+ #endif
Karsten Hopp 619ee4
      ret = stat(fname, &statbuf);
Karsten Hopp 619ee4
      if (ret < 0)
Karsten Hopp 619ee4
      {
Karsten Hopp 619ee4
*** ../vim-7.3.1179/src/version.c	2013-06-12 21:00:18.000000000 +0200
Karsten Hopp 619ee4
--- src/version.c	2013-06-12 21:05:27.000000000 +0200
Karsten Hopp 619ee4
***************
Karsten Hopp 619ee4
*** 730,731 ****
Karsten Hopp 619ee4
--- 730,733 ----
Karsten Hopp 619ee4
  {   /* Add new patch number below this line */
Karsten Hopp 619ee4
+ /**/
Karsten Hopp 619ee4
+     1180,
Karsten Hopp 619ee4
  /**/
Karsten Hopp 619ee4
Karsten Hopp 619ee4
-- 
Karsten Hopp 619ee4
If Microsoft would build a car...
Karsten Hopp 619ee4
... Occasionally, executing a maneuver such as a left turn
Karsten Hopp 619ee4
would cause your car to shut down and refuse to restart, in
Karsten Hopp 619ee4
which case you would have to reinstall the engine.
Karsten Hopp 619ee4
Karsten Hopp 619ee4
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 619ee4
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 619ee4
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 619ee4
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///