diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2023-07-08 16:55:27 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2023-07-08 16:55:27 +0200 |
commit | b9a0e762f1d79d17631b7d17cf25b6e25006d8c2 (patch) | |
tree | 33e1f5ac366aa0e91433c2b1e0914a2036f4de5c /runtime/lua/vim/_editor.lua | |
parent | 0a90e4b05ad3263bf656e24f616b6dadf6ba92e4 (diff) | |
download | rneovim-b9a0e762f1d79d17631b7d17cf25b6e25006d8c2.tar.gz rneovim-b9a0e762f1d79d17631b7d17cf25b6e25006d8c2.tar.bz2 rneovim-b9a0e762f1d79d17631b7d17cf25b6e25006d8c2.zip |
fix(defaults): visual star (*) on text with "?"
regression from 6318edadc32acce3ed41a6995a5faa5395b5f562
Diffstat (limited to 'runtime/lua/vim/_editor.lua')
-rw-r--r-- | runtime/lua/vim/_editor.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/_editor.lua b/runtime/lua/vim/_editor.lua index 0bbbed74bb..5a93f5cd60 100644 --- a/runtime/lua/vim/_editor.lua +++ b/runtime/lua/vim/_editor.lua @@ -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]]) |