1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 10:30:05 +08:00

perf(history): update register @/

This commit is contained in:
Eric Wong 2024-05-14 19:13:39 +08:00
parent c2899ae1f8
commit 503842a9a3

View File

@ -54,6 +54,7 @@ function! s:read_cache() abort
if type(his) ==# type({})
call map(deepcopy(his.cmd), 'histadd("cmd", v:val)')
call map(deepcopy(his.search), 'histadd("search", v:val)')
let @/ = histget('search', -1)
let s:filepos = get(his, 'filepos', {})
endif
endif