summaryrefslogtreecommitdiffstats
authorBram Moolenaar <[email protected]>2011-06-26 02:25:30 (GMT)
committer Bram Moolenaar <[email protected]>2011-06-26 02:25:30 (GMT)
commitbe9de3cbaf4b103229fbc690feba06e77a1762a2 (patch) (side-by-side diff)
treea7ae48a32ab9cdda74eeb4da0f66ebba9065cccb
parentba5f3329d824c4733a2ccc973f31cd5cee0a69a6 (diff)
downloadvim-project-be9de3cbaf4b103229fbc690feba06e77a1762a2.zip
vim-project-be9de3cbaf4b103229fbc690feba06e77a1762a2.tar.gz
vim-project-be9de3cbaf4b103229fbc690feba06e77a1762a2.tar.bz2
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 (more/less context) (ignore whitespace changes)
-rw-r--r--src/ex_cmds2.c10
-rw-r--r--src/version.c2
2 files changed, 10 insertions, 2 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index 8dbe929..7bc1879 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 17e7c31..0057a0a 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,