Skip to content

Commit 811367d

Browse files
Ingo HeimbachIngo Heimbach
authored andcommitted
c: The return value of a C function does not need to be on the same line as the
function name
1 parent adb50f3 commit 811367d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • autoload/textobj/function

autoload/textobj/function/c.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ function! s:select_a()
3434
normal! %
3535
call search(')', 'bc')
3636
normal! %0k
37+
if substitute(getline('.'), '^\s*$', '', '') == ''
38+
normal! j
39+
endif
3740
let b = getpos('.')
3841

3942
if 1 < e[1] - b[1] " is there some code?

0 commit comments

Comments
 (0)