fix(builin.grepstring): use 'normal!' instead of 'normal' (#2852)

This commit is contained in:
taeruh
2024-01-09 19:39:44 +11:00
committed by GitHub
parent 0bf09d05ab
commit 03681adde1

View File

@@ -194,7 +194,7 @@ files.grep_string = function(opts)
if visual == true then
local saved_reg = vim.fn.getreg "v"
vim.cmd [[noautocmd sil norm "vy]]
vim.cmd [[noautocmd sil norm! "vy]]
local sele = vim.fn.getreg "v"
vim.fn.setreg("v", saved_reg)
word = vim.F.if_nil(opts.search, sele)