Skip to content

Commit 9efa918

Browse files
committed
FIX #10 (Extract Property).
1 parent b5a117e commit 9efa918

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugin/php-refactoring-toolbox.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,9 +416,11 @@ function! s:PhpInsertProperty(name, visibility) " {{{
416416
call search('{', 'W')
417417
call s:PhpInsertPropertyExtended(a:name, a:visibility, line('.'), 0)
418418
else
419+
call search(';', 'W')
419420
call s:PhpInsertPropertyExtended(a:name, a:visibility, line('.'), 1)
420421
endif
421422
else
423+
call search(';', 'W')
422424
call s:PhpInsertPropertyExtended(a:name, a:visibility, line('.'), 0)
423425
endif
424426
endfunction

0 commit comments

Comments
 (0)