Browse files

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)
  • Loading branch information...
1 parent b26f0fb commit 4cc118bb3d4d5ca8f36b049cf063bdf4ce9fb4d6 @brammool brammool committed Aug 10, 2011
Showing with 4 additions and 3 deletions.
  1. +2 −3 src/VisVim/Commands.cpp
  2. +2 −0 src/version.c
View
5 src/VisVim/Commands.cpp
@@ -549,16 +549,15 @@ static BOOL VimOpenFile(BSTR& FileName, long LineNr)
if (g_bNewTabs)
{
sprintf(VimCmd, ":tab drop ");
- s = VimCmd + 11;
+ s = VimCmd + 10;
}
else
{
sprintf(VimCmd, ":drop ");
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
View
2 src/version.c
@@ -710,6 +710,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 278,
+/**/
277,
/**/
276,

0 comments on commit 4cc118b

Please sign in to comment.