0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.3.233

Problem:    ":scriptnames" and ":breaklist" show long file names.
Solution:   Shorten to use "~/" when possible. (Jean-Rene David)
This commit is contained in:
Bram Moolenaar
2011-06-26 04:25:30 +02:00
parent 91805fc0db
commit d58ea07227
2 changed files with 10 additions and 2 deletions

View File

@@ -682,10 +682,12 @@ ex_breaklist(eap)
for (i = 0; i < dbg_breakp.ga_len; ++i) for (i = 0; i < dbg_breakp.ga_len; ++i)
{ {
bp = &BREAKP(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"), smsg((char_u *)_("%3d %s %s line %ld"),
bp->dbg_nr, bp->dbg_nr,
bp->dbg_type == DBG_FUNC ? "func" : "file", bp->dbg_type == DBG_FUNC ? "func" : "file",
bp->dbg_name, bp->dbg_type == DBG_FUNC ? bp->dbg_name : NameBuff,
(long)bp->dbg_lnum); (long)bp->dbg_lnum);
} }
} }
@@ -3268,7 +3270,11 @@ ex_scriptnames(eap)
for (i = 1; i <= script_items.ga_len && !got_int; ++i) for (i = 1; i <= script_items.ga_len && !got_int; ++i)
if (SCRIPT_ITEM(i).sn_name != NULL) if (SCRIPT_ITEM(i).sn_name != NULL)
smsg((char_u *)"%3d: %s", i, SCRIPT_ITEM(i).sn_name); {
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) # if defined(BACKSLASH_IN_FILENAME) || defined(PROTO)

View File

@@ -709,6 +709,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
233,
/**/ /**/
232, 232,
/**/ /**/