Karsten Hopp d8eb1c
To: vim_dev@googlegroups.com
Karsten Hopp d8eb1c
Subject: Patch 7.3.233
Karsten Hopp d8eb1c
Fcc: outbox
Karsten Hopp d8eb1c
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp d8eb1c
Mime-Version: 1.0
Karsten Hopp d8eb1c
Content-Type: text/plain; charset=UTF-8
Karsten Hopp d8eb1c
Content-Transfer-Encoding: 8bit
Karsten Hopp d8eb1c
------------
Karsten Hopp d8eb1c
Karsten Hopp d8eb1c
Patch 7.3.233
Karsten Hopp d8eb1c
Problem:    ":scriptnames" and ":breaklist" show long file names.
Karsten Hopp d8eb1c
Solution:   Shorten to use "~/" when possible. (Jean-Rene David)
Karsten Hopp d8eb1c
Files:      src/ex_cmds2.c 
Karsten Hopp d8eb1c
Karsten Hopp d8eb1c
Karsten Hopp d8eb1c
*** ../vim-7.3.232/src/ex_cmds2.c	2011-05-19 18:26:34.000000000 +0200
Karsten Hopp d8eb1c
--- src/ex_cmds2.c	2011-06-26 04:20:24.000000000 +0200
Karsten Hopp d8eb1c
***************
Karsten Hopp d8eb1c
*** 682,691 ****
Karsten Hopp d8eb1c
  	for (i = 0; i < dbg_breakp.ga_len; ++i)
Karsten Hopp d8eb1c
  	{
Karsten Hopp d8eb1c
  	    bp = &BREAKP(i);
Karsten Hopp d8eb1c
  	    smsg((char_u *)_("%3d  %s %s  line %ld"),
Karsten Hopp d8eb1c
  		    bp->dbg_nr,
Karsten Hopp d8eb1c
  		    bp->dbg_type == DBG_FUNC ? "func" : "file",
Karsten Hopp d8eb1c
! 		    bp->dbg_name,
Karsten Hopp d8eb1c
  		    (long)bp->dbg_lnum);
Karsten Hopp d8eb1c
  	}
Karsten Hopp d8eb1c
  }
Karsten Hopp d8eb1c
--- 682,693 ----
Karsten Hopp d8eb1c
  	for (i = 0; i < dbg_breakp.ga_len; ++i)
Karsten Hopp d8eb1c
  	{
Karsten Hopp d8eb1c
  	    bp = &BREAKP(i);
Karsten Hopp d8eb1c
+ 	    if (bp->dbg_type == DBG_FILE)
Karsten Hopp d8eb1c
+ 		home_replace(NULL, bp->dbg_name, NameBuff, MAXPATHL, TRUE);
Karsten Hopp d8eb1c
  	    smsg((char_u *)_("%3d  %s %s  line %ld"),
Karsten Hopp d8eb1c
  		    bp->dbg_nr,
Karsten Hopp d8eb1c
  		    bp->dbg_type == DBG_FUNC ? "func" : "file",
Karsten Hopp d8eb1c
! 		    bp->dbg_type == DBG_FUNC ? bp->dbg_name : NameBuff,
Karsten Hopp d8eb1c
  		    (long)bp->dbg_lnum);
Karsten Hopp d8eb1c
  	}
Karsten Hopp d8eb1c
  }
Karsten Hopp d8eb1c
***************
Karsten Hopp d8eb1c
*** 3268,3274 ****
Karsten Hopp d8eb1c
  
Karsten Hopp d8eb1c
      for (i = 1; i <= script_items.ga_len && !got_int; ++i)
Karsten Hopp d8eb1c
  	if (SCRIPT_ITEM(i).sn_name != NULL)
Karsten Hopp d8eb1c
! 	    smsg((char_u *)"%3d: %s", i, SCRIPT_ITEM(i).sn_name);
Karsten Hopp d8eb1c
  }
Karsten Hopp d8eb1c
  
Karsten Hopp d8eb1c
  # if defined(BACKSLASH_IN_FILENAME) || defined(PROTO)
Karsten Hopp d8eb1c
--- 3270,3280 ----
Karsten Hopp d8eb1c
  
Karsten Hopp d8eb1c
      for (i = 1; i <= script_items.ga_len && !got_int; ++i)
Karsten Hopp d8eb1c
  	if (SCRIPT_ITEM(i).sn_name != NULL)
Karsten Hopp d8eb1c
! 	{
Karsten Hopp d8eb1c
! 	    home_replace(NULL, SCRIPT_ITEM(i).sn_name,
Karsten Hopp d8eb1c
! 						    NameBuff, MAXPATHL, TRUE);
Karsten Hopp d8eb1c
! 	    smsg((char_u *)"%3d: %s", i, NameBuff);
Karsten Hopp d8eb1c
!         }
Karsten Hopp d8eb1c
  }
Karsten Hopp d8eb1c
  
Karsten Hopp d8eb1c
  # if defined(BACKSLASH_IN_FILENAME) || defined(PROTO)
Karsten Hopp d8eb1c
*** ../vim-7.3.232/src/version.c	2011-06-26 04:01:37.000000000 +0200
Karsten Hopp d8eb1c
--- src/version.c	2011-06-26 04:23:48.000000000 +0200
Karsten Hopp d8eb1c
***************
Karsten Hopp d8eb1c
*** 711,712 ****
Karsten Hopp d8eb1c
--- 711,714 ----
Karsten Hopp d8eb1c
  {   /* Add new patch number below this line */
Karsten Hopp d8eb1c
+ /**/
Karsten Hopp d8eb1c
+     233,
Karsten Hopp d8eb1c
  /**/
Karsten Hopp d8eb1c
Karsten Hopp d8eb1c
-- 
Karsten Hopp d8eb1c
hundred-and-one symptoms of being an internet addict:
Karsten Hopp d8eb1c
223. You set up a web-cam as your home's security system.
Karsten Hopp d8eb1c
Karsten Hopp d8eb1c
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp d8eb1c
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp d8eb1c
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp d8eb1c
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///