File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -1182,27 +1182,19 @@ endfunction
1182
1182
" Manages the Vim's numbered registers
1183
1183
function ! s: YRSetNumberedReg ()
1184
1184
1185
- let i = 0
1185
+ let i = 1
1186
1186
1187
1187
while i <= 10
1188
1188
if i > s: yr_count
1189
1189
break
1190
1190
endif
1191
1191
1192
- call setreg ( (i )
1193
- \ , s: YRGetValElemNbr ((i ),' v' )
1194
- \ , s: YRGetValElemNbr ((i ),' t' )
1192
+ call setreg ( (i - 1 )
1193
+ \ , s: YRGetValElemNbr ((i - 1 ),' v' )
1194
+ \ , s: YRGetValElemNbr ((i - 1 ),' t' )
1195
1195
\ )
1196
1196
let i += 1
1197
1197
endwhile
1198
-
1199
- " There are a few actions that Vim automatically takes
1200
- " when modifying the numbered registers.
1201
- " Modifying register 1 - changes the named register.
1202
- " It is impossible to set register 2 to a value, since Vim will change it.
1203
-
1204
- " This will at least preserve the default register
1205
- let @" = @0
1206
1198
endfunction
1207
1199
1208
1200
You can’t perform that action at this time.
0 commit comments