Improve redraw in search mode
This commit is contained in:
@@ -187,8 +187,10 @@ misc.redraw = setmetatable({
|
||||
}, {
|
||||
__call = function(self, force)
|
||||
if vim.tbl_contains({ '/', '?' }, vim.fn.getcmdtype()) then
|
||||
if vim.o.incsearch then
|
||||
return vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes('<C-r>=""<CR>', true, true, true), 'n', true)
|
||||
end
|
||||
end
|
||||
|
||||
if self.doing then
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user