mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +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
|
||||
.iter(chunks)
|
||||
:map(function(v)
|
||||
return vim.fn.escape(v, [[?/\]])
|
||||
return vim.fn.escape(v, cmd == '/' and [[/\]] or [[?\]])
|
||||
end)
|
||||
:totable()
|
||||
local esc_pat = table.concat(esc_chunks, [[\n]])
|
||||
|
Reference in New Issue
Block a user