From: Bram Moolenaar Date: Sun, 26 Jun 2011 02:25:30 +0000 (+0200) Subject: updated for version 7.3.233 X-Git-Tag: v7.3.233 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d58ea072271a14db1f0422d787e2cbd59d530476;p=vim updated for version 7.3.233 Problem: ":scriptnames" and ":breaklist" show long file names. Solution: Shorten to use "~/" when possible. (Jean-Rene David) --- diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c index 8dbe9294e..7bc18790b 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 17e7c3168..0057a0a07 100644 --- a/src/version.c +++ b/src/version.c @@ -709,6 +709,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 233, /**/ 232, /**/