]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.278 v7.3.278
authorBram Moolenaar <Bram@vim.org>
Wed, 10 Aug 2011 15:25:51 +0000 (17:25 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 10 Aug 2011 15:25:51 +0000 (17:25 +0200)
Problem:    Passing the file name to open in VisVim doesn't work.
Solution:   Adjust the index and check for end of buffer. (Jiri Sedlak)

src/VisVim/Commands.cpp
src/version.c

index a346dea702954c1e6212aa82e9730dd1df8b937d..111b163c4238efba31affd66f2e67066ac7d1daf 100644 (file)
@@ -549,7 +549,7 @@ static BOOL VimOpenFile(BSTR& FileName, long LineNr)
        if (g_bNewTabs)
        {
                sprintf(VimCmd, ":tab drop ");
-               s = VimCmd + 11;
+               s = VimCmd + 10;
        }
        else
        {
@@ -557,8 +557,7 @@ static BOOL VimOpenFile(BSTR& FileName, long LineNr)
                s = VimCmd + 6;
        }
        sprintf(FileNameTmp, "%S", (char *)FileName);
-       for (p = FileNameTmp; *p != '\0' && s < FileNameTmp + MAX_OLE_STR - 4;
-                                                                         ++p)
+       for (p = FileNameTmp; *p != '\0' && s < VimCmd + MAX_OLE_STR - 4; ++p)
                if (*p == '\\')
                        *s++ = '/';
                else
index 517310e2cd2a28c4d535ed9baf32479d53de58bf..e009b8575ec3e6762710cf16cdb8bd52ae39a9ed 100644 (file)
@@ -709,6 +709,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    278,
 /**/
     277,
 /**/