diff options
author | Bram Moolenaar <bram@vim.org> | 2011-08-10 17:25:51 +0200 |
---|---|---|
committer | Bram Moolenaar <bram@vim.org> | 2011-08-10 17:25:51 +0200 |
commit | 6158a8c6cbcf524adcea7095b0c6fef872ef8fc6 (patch) | |
tree | f28467ff4a8f895c577af5d6e697c73eecb07432 | |
parent | 475daa40e442f61721353843002e27a01586e689 (diff) | |
download | vim-7.3.278.tar.gz |
Problem: Passing the file name to open in VisVim doesn't work.
Solution: Adjust the index and check for end of buffer. (Jiri Sedlak)
-rw-r--r-- | src/VisVim/Commands.cpp | 5 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/VisVim/Commands.cpp b/src/VisVim/Commands.cpp index a346dea7..111b163c 100644 --- a/src/VisVim/Commands.cpp +++ b/src/VisVim/Commands.cpp @@ -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 diff --git a/src/version.c b/src/version.c index 517310e2..e009b857 100644 --- 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, |