folke / flash.nvim

Navigate your code with search labels, enhanced character motions and Treesitter integration
Apache License 2.0
2.47k stars 33 forks source link

bug: `f`, `F`, `t`, `T` motions can not jump backward. #297

Closed lkyhfx closed 2 months ago

lkyhfx commented 9 months ago

Did you check docs and existing issues?

Neovim version (nvim -v)

v0.10.0-dev-1825+gd65c6a0ba

Operating system/version

WSL2 Ubuntu 22.04

Describe the bug

f, F, t, T motions cannot jump backward. Also, try the latest stable version of Neovim; it can't jump backward either.

Steps To Reproduce

https://github.com/folke/flash.nvim/assets/30225731/ef5376c8-3c7b-4a6d-9fdf-c6b416f3091c

Expected Behavior

f, F, t, T should work properly

Repro

{
        "folke/flash.nvim",
        event = "VeryLazy",
        ---@type Flash.Config
        opts = {
            jump = {
                pos = "end", ---@type "start" | "end" | "range"
            },
        }, 
        keys = {
            { "s", mode = { "n", "x", "o" }, function() require("flash").jump() end, desc = "Flash" },
            { "S", mode = { "n", "x", "o" }, function() require("flash").treesitter() end, desc = "Flash Treesitter" },
            { "r", mode = "o", function() require("flash").remote() end, desc = "Remote Flash" },
            { "R", mode = { "o", "x" }, function() require("flash").treesitter_search() end, desc = "Treesitter Search" },
        }
    }
github-actions[bot] commented 2 months ago

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.

github-actions[bot] commented 2 months ago

This issue was closed because it has been stalled for 7 days with no activity.