mirror of
https://github.com/neovim/neovim
synced 2025-07-16 09:11:51 +00:00
fix(defaults): visual star (*) on text with "?"
regression from 6318edadc3
This commit is contained in:
@ -1029,7 +1029,7 @@ function vim._init_default_mappings()
|
|||||||
local esc_chunks = vim
|
local esc_chunks = vim
|
||||||
.iter(chunks)
|
.iter(chunks)
|
||||||
:map(function(v)
|
:map(function(v)
|
||||||
return vim.fn.escape(v, [[?/\]])
|
return vim.fn.escape(v, cmd == '/' and [[/\]] or [[?\]])
|
||||||
end)
|
end)
|
||||||
:totable()
|
:totable()
|
||||||
local esc_pat = table.concat(esc_chunks, [[\n]])
|
local esc_pat = table.concat(esc_chunks, [[\n]])
|
||||||
|
Reference in New Issue
Block a user