mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 12:50:04 +08:00
perf(history): update register @/
This commit is contained in:
parent
c2899ae1f8
commit
503842a9a3
@ -54,6 +54,7 @@ function! s:read_cache() abort
|
|||||||
if type(his) ==# type({})
|
if type(his) ==# type({})
|
||||||
call map(deepcopy(his.cmd), 'histadd("cmd", v:val)')
|
call map(deepcopy(his.cmd), 'histadd("cmd", v:val)')
|
||||||
call map(deepcopy(his.search), 'histadd("search", v:val)')
|
call map(deepcopy(his.search), 'histadd("search", v:val)')
|
||||||
|
let @/ = histget('search', -1)
|
||||||
let s:filepos = get(his, 'filepos', {})
|
let s:filepos = get(his, 'filepos', {})
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user