]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.233 v7.3.233
authorBram Moolenaar <Bram@vim.org>
Sun, 26 Jun 2011 02:25:30 +0000 (04:25 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 26 Jun 2011 02:25:30 +0000 (04:25 +0200)
Problem:    ":scriptnames" and ":breaklist" show long file names.
Solution:   Shorten to use "~/" when possible. (Jean-Rene David)

src/ex_cmds2.c
src/version.c

index 8dbe9294e4a9cfa9f4f794f56b00c2332d309e9e..7bc18790ba41c880ed3925ab591d295cc60101ba 100644 (file)
@@ -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)
index 17e7c31681c633fa8fe3e5d22f01ecf59ffa7025..0057a0a076a24332c13f09868540fb3d63daba17 100644 (file)
@@ -709,6 +709,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    233,
 /**/
     232,
 /**/