flash.nvim
flash.nvim copied to clipboard
bug: labels may exist as a continuation of the search pattern when using smartcase
Did you check docs and existing issues?
- [X] I have read all the flash.nvim docs
- [X] I have searched the existing issues of flash.nvim
- [X] I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
0.9.4
Operating system/version
Fedora 39
Describe the bug
When I open the definition of tst_QFuture::whenAnyDifferentTypes
in tst_qfuture
from the qtbase repo (https://github.com/qt/qtbase/blob/c4bd6ac4e5a0782d8771af1485a3b78733180785/tests/auto/corelib/thread/qfuture/tst_qfuture.cpp#L4834) and search for Q
, one of the labels is F
which is the next character in QFuture
.
Steps To Reproduce
- Configure nvim to use smartcase
- Open the
tst_qfuture
file from the qtbase repo and go to the definition oftst_QFuture::whenAnyDifferentTypes
: https://github.com/qt/qtbase/blob/c4bd6ac4e5a0782d8771af1485a3b78733180785/tests/auto/corelib/thread/qfuture/tst_qfuture.cpp#L4834 - Search for
Q
Expected Behavior
Labels do not contain a character that is a continuation of the search pattern (F
in this case)
Repro
-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)
-- install plugins
local plugins = {
"folke/tokyonight.nvim",
{ "folke/flash.nvim", opts = {} },
-- add any other plugins here
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
vim.cmd.colorscheme("tokyonight")
-- add anything else here
vim.opt.ignorecase = true
vim.opt.smartcase = true
Same here.
I'm experiencing this problem as well. I have uploaded an example file below. I wanted to search for "DIFdel" in the file but the search ends either on "I" or "F".
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.