folke / flash.nvim

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

bug: flash prompt not clearing #378

Open themastersheep opened 1 week ago

themastersheep commented 1 week ago

Did you check docs and existing issues?

Neovim version (nvim -v)

0.10.1

Operating system/version

Centos 7

Describe the bug

installed using default config from the readme.

when attempting to jump, the flash prompt replaces the status line, but over two lines, upon exiting the status line returns, but the prompt remains.

subsequent jump attempts create more flash prompt signs in the sign column.

using ctrl+l will redraw and remove them.

Steps To Reproduce

EDIT run within tmux session with status bar disabled

  1. press s
  2. enter pattern (or escape doesnt matter)

Expected Behavior

prompt to display on a single line and to be cleared once jump complete.

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    {
        "folke/flash.nvim",
        event = "VeryLazy",
        ---@type Flash.Config
        opts = {},
        -- stylua: ignore
        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" },
            { "<c-s>", mode = { "c" },           function() require("flash").toggle() end,            desc = "Toggle Flash Search" },
        },
    },

  },
})
themastersheep commented 1 week ago

image

themastersheep commented 1 week ago

narrowed the issue down to running in tmux with the status bar disabled.

tmux command set status off

Edit: issue also occurs if the status bar is moved to the top.

Tmux version 3.3a