summaryrefslogtreecommitdiff
path: root/source/ap/vim/patches/7.3.233
blob: 2dcbf89ac4b7b80edaf84d9e0b1c8db52b3e04e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
To: vim_dev@googlegroups.com
Subject: Patch 7.3.233
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 7.3.233
Problem:    ":scriptnames" and ":breaklist" show long file names.
Solution:   Shorten to use "~/" when possible. (Jean-Rene David)
Files:      src/ex_cmds2.c 


*** ../vim-7.3.232/src/ex_cmds2.c	2011-05-19 18:26:34.000000000 +0200
--- src/ex_cmds2.c	2011-06-26 04:20:24.000000000 +0200
***************
*** 682,691 ****
  	for (i = 0; i < dbg_breakp.ga_len; ++i)
  	{
  	    bp = &BREAKP(i);
  	    smsg((char_u *)_("%3d  %s %s  line %ld"),
  		    bp->dbg_nr,
  		    bp->dbg_type == DBG_FUNC ? "func" : "file",
! 		    bp->dbg_name,
  		    (long)bp->dbg_lnum);
  	}
  }
--- 682,693 ----
  	for (i = 0; i < dbg_breakp.ga_len; ++i)
  	{
  	    bp = &BREAKP(i);
+ 	    if (bp->dbg_type == DBG_FILE)
+ 		home_replace(NULL, bp->dbg_name, NameBuff, MAXPATHL, TRUE);
  	    smsg((char_u *)_("%3d  %s %s  line %ld"),
  		    bp->dbg_nr,
  		    bp->dbg_type == DBG_FUNC ? "func" : "file",
! 		    bp->dbg_type == DBG_FUNC ? bp->dbg_name : NameBuff,
  		    (long)bp->dbg_lnum);
  	}
  }
***************
*** 3268,3274 ****
  
      for (i = 1; i <= script_items.ga_len && !got_int; ++i)
  	if (SCRIPT_ITEM(i).sn_name != NULL)
! 	    smsg((char_u *)"%3d: %s", i, SCRIPT_ITEM(i).sn_name);
  }
  
  # if defined(BACKSLASH_IN_FILENAME) || defined(PROTO)
--- 3270,3280 ----
  
      for (i = 1; i <= script_items.ga_len && !got_int; ++i)
  	if (SCRIPT_ITEM(i).sn_name != NULL)
! 	{
! 	    home_replace(NULL, SCRIPT_ITEM(i).sn_name,
! 						    NameBuff, MAXPATHL, TRUE);
! 	    smsg((char_u *)"%3d: %s", i, NameBuff);
!         }
  }
  
  # if defined(BACKSLASH_IN_FILENAME) || defined(PROTO)
*** ../vim-7.3.232/src/version.c	2011-06-26 04:01:37.000000000 +0200
--- src/version.c	2011-06-26 04:23:48.000000000 +0200
***************
*** 711,712 ****
--- 711,714 ----
  {   /* Add new patch number below this line */
+ /**/
+     233,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
223. You set up a web-cam as your home's security system.

 /// Bram Moolenaar -- Bram@Moolenaar.net -- 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    ///