mirror of
https://github.com/zoriya/telescope.nvim.git
synced 2026-05-30 01:38:32 +00:00
fix(builin.grepstring): use 'normal!' instead of 'normal' (#2852)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user