From 503842a9a32574628c9f9183eb3df575286700b4 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 14 May 2024 19:13:39 +0800 Subject: [PATCH] perf(history): update register `@/` --- autoload/SpaceVim/plugins/history.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/SpaceVim/plugins/history.vim b/autoload/SpaceVim/plugins/history.vim index 7f0b1af90..c3efd2031 100644 --- a/autoload/SpaceVim/plugins/history.vim +++ b/autoload/SpaceVim/plugins/history.vim @@ -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