Created
February 19, 2015 07:39
-
-
Save complex857/07caefdd2212f8cb5335 to your computer and use it in GitHub Desktop.
Second attempt to solve https://github.com/shawncplus/phpcomplete.vim/issues/57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/autoload/phpcomplete.vim b/autoload/phpcomplete.vim | |
index 1df1b40..01ba987 100644 | |
--- a/autoload/phpcomplete.vim | |
+++ b/autoload/phpcomplete.vim | |
@@ -1146,7 +1146,7 @@ endfunction " }}} | |
function! s:readfileToTmpbuffer(file) " {{{ | |
let cfile = join(readfile(a:file), "\n") | |
- silent! below 1new | |
+ silent! below new | |
silent! 0put =cfile | |
silent! exec "set ft=phpcompletetempbuffer" | |
return [bufnr('$'), bufname('%')] | |
@@ -2307,7 +2307,7 @@ function! phpcomplete#GetClassContentsStructure(file_path, file_lines, class_nam | |
" remember the window we started at | |
let phpcomplete_original_window = winnr() | |
- silent! below 1new | |
+ silent! below new | |
silent! 0put =cfile | |
silent! exec "setlocal ft=phpcompletetempbuffer" | |
@@ -2648,7 +2648,7 @@ endfunction! | |
function! phpcomplete#GetCurrentNameSpace(file_lines) " {{{ | |
let original_window = winnr() | |
- silent! below 1new | |
+ silent! below new | |
silent! 0put =a:file_lines | |
silent! exec "setlocal ft=phpcompletetempbuffer" | |
normal! G |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment