Skip to content

Commit 8df9ad0

Browse files
committed
Word around clipboard=unnamed in :Rinvert
1 parent f67e287 commit 8df9ad0

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

autoload/rails.vim

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3123,12 +3123,9 @@ function! s:Invert(bang)
31233123
if beg + 1 < end
31243124
exe (beg+1).",".(end-1)."delete _"
31253125
endif
3126-
if str != ""
3127-
let reg_keep = @"
3128-
let @" = str
3129-
exe beg."put"
3126+
if str != ''
3127+
exe beg.'put =str'
31303128
exe 1+beg
3131-
let @" = reg_keep
31323129
endif
31333130
endfunction
31343131

0 commit comments

Comments
 (0)