Skip to content

Commit b06684a

Browse files
committed
Merge pull request #39 from wellle/feedkeys-i
Pass flag 'i' to feedkeys() call
2 parents bd3b517 + ad89be2 commit b06684a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

autoload/repeat.vim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,17 @@ function! repeat#run(count)
8989
let c = g:repeat_count
9090
let s = g:repeat_sequence
9191
let cnt = c == -1 ? "" : (a:count ? a:count : (c ? c : ''))
92-
if (v:version > 703 || (v:version == 703 && has('patch100')))
92+
if ((v:version == 703 && has('patch100')) || (v:version == 704 && !has('patch601')))
9393
exe 'norm ' . r . cnt . s
9494
else
95-
call feedkeys(r . cnt, 'n')
96-
call feedkeys(s)
95+
call feedkeys(r . cnt, 'ni')
96+
call feedkeys(s, 'i')
9797
endif
9898
else
99-
if (v:version > 703 || (v:version == 703 && has('patch100')))
99+
if ((v:version == 703 && has('patch100')) || (v:version == 704 && !has('patch601')))
100100
exe 'norm! '.(a:count ? a:count : '') . '.'
101101
else
102-
call feedkeys((a:count ? a:count : '') . '.', 'n')
102+
call feedkeys((a:count ? a:count : '') . '.', 'ni')
103103
endif
104104
endif
105105
endfunction

0 commit comments

Comments
 (0)