diff options
author | Bram Moolenaar <Bram@vim.org> | 2011-06-26 04:25:30 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2011-06-26 04:25:30 +0200 |
commit | d58ea072271a14db1f0422d787e2cbd59d530476 (patch) | |
tree | 09176add8551c1f0b4c37222f2e149ef9abddb69 /src | |
parent | 91805fc0db6b957c5bf688f2d96585eae9179999 (diff) |
updated for version 7.3.233v7.3.233
Problem: ":scriptnames" and ":breaklist" show long file names.
Solution: Shorten to use "~/" when possible. (Jean-Rene David)
Diffstat (limited to 'src')
-rw-r--r-- | src/ex_cmds2.c | 10 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c index 8dbe9294e4..7bc18790ba 100644 --- a/src/ex_cmds2.c +++ b/src/ex_cmds2.c @@ -682,10 +682,12 @@ ex_breaklist(eap) 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_name, + bp->dbg_type == DBG_FUNC ? bp->dbg_name : NameBuff, (long)bp->dbg_lnum); } } @@ -3268,7 +3270,11 @@ ex_scriptnames(eap) 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); + { + 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) diff --git a/src/version.c b/src/version.c index 17e7c31681..0057a0a076 100644 --- a/src/version.c +++ b/src/version.c @@ -710,6 +710,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 233, +/**/ 232, /**/ 231, |