Skip to content

Commit d245da3

Browse files
author
Jan Mollowitz
committed
Added function for instant extract method and bypassing menu
1 parent 644abbf commit d245da3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugin/phprefactor.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ func! PhpRefactorExtractMethod(startline, endline)
4949
" todo : exit visual mode
5050
endfunc
5151

52+
func! PhpRefactorExtractMethodDirectly() range
53+
call PhpRefactorExtractMethod(a:firstline, a:lastline)
54+
endfunc
55+
5256
func! PhpRefactorLocalVariableToInstanceVariable()
5357
" check the file has been saved
5458
if &modified

0 commit comments

Comments
 (0)