mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
fix(defaults): visual hash (#) on text with "?"
Problem: The default "#" mapping fails on the following example after v$h# with cursor at start of the first line: aa?/\bb aa aa?/\bb Solution: Also escape "?".
This commit is contained in:
parent
7c077a3c2b
commit
6318edadc3
@ -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, [[?/\]])
|
||||
end)
|
||||
:totable()
|
||||
local esc_pat = table.concat(esc_chunks, [[\n]])
|
||||
|
Loading…
Reference in New Issue
Block a user