mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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)
This commit is contained in:
@@ -549,7 +549,7 @@ static BOOL VimOpenFile(BSTR& FileName, long LineNr)
|
|||||||
if (g_bNewTabs)
|
if (g_bNewTabs)
|
||||||
{
|
{
|
||||||
sprintf(VimCmd, ":tab drop ");
|
sprintf(VimCmd, ":tab drop ");
|
||||||
s = VimCmd + 11;
|
s = VimCmd + 10;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -557,8 +557,7 @@ static BOOL VimOpenFile(BSTR& FileName, long LineNr)
|
|||||||
s = VimCmd + 6;
|
s = VimCmd + 6;
|
||||||
}
|
}
|
||||||
sprintf(FileNameTmp, "%S", (char *)FileName);
|
sprintf(FileNameTmp, "%S", (char *)FileName);
|
||||||
for (p = FileNameTmp; *p != '\0' && s < FileNameTmp + MAX_OLE_STR - 4;
|
for (p = FileNameTmp; *p != '\0' && s < VimCmd + MAX_OLE_STR - 4; ++p)
|
||||||
++p)
|
|
||||||
if (*p == '\\')
|
if (*p == '\\')
|
||||||
*s++ = '/';
|
*s++ = '/';
|
||||||
else
|
else
|
||||||
|
@@ -709,6 +709,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
278,
|
||||||
/**/
|
/**/
|
||||||
277,
|
277,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user