# HG changeset patch # User Bram Moolenaar # Date 1312989951 -7200 # Node ID 6622f28b7e87a93de6f1520945d1c5d2a1fc0dab # Parent d411cfffc904bfc8ed332d21eb1355cd1ddd37c2 updated for version 7.3.278 Problem: Passing the file name to open in VisVim doesn't work. Solution: Adjust the index and check for end of buffer. (Jiri Sedlak) diff --git a/src/VisVim/Commands.cpp b/src/VisVim/Commands.cpp --- a/src/VisVim/Commands.cpp +++ b/src/VisVim/Commands.cpp @@ -549,7 +549,7 @@ static BOOL VimOpenFile(BSTR& FileName, if (g_bNewTabs) { sprintf(VimCmd, ":tab drop "); - s = VimCmd + 11; + s = VimCmd + 10; } else { @@ -557,8 +557,7 @@ static BOOL VimOpenFile(BSTR& FileName, 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 diff --git a/src/version.c b/src/version.c --- 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 */ /**/ + 278, +/**/ 277, /**/ 276,