folke / noice.nvim

💥 Highly experimental plugin that completely replaces the UI for messages, cmdline and the popupmenu.
Apache License 2.0
4.48k stars 105 forks source link

bug: Two confirm()'s one after the other don't update the text in the confirm window. #968

Open dapetcu21 opened 1 month ago

dapetcu21 commented 1 month ago

Did you check docs and existing issues?

Neovim version (nvim -v)

0.10.1

Operating system/version

Windows 10

Describe the bug

Two confirms in quick succession will exhibit a weird behavior where the second confirm window will resize to the correct size, but keep the text contents of the first one.

image Then: image

Steps To Reproduce

call confirm("This is a longer text. This is a longer text.") | call confirm("Meow")

Expected Behavior

image Then: image

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/noice.nvim", opts = {} },
    -- add any other plugins here
  },
})
qlaq2435 commented 1 month ago

I’m experiencing the same issue, when I use 'qa' cmd, and confirm to save multi files, similar to what you described. The related information about Noice is as follows:

        version 4.5.2
        tag     v4.5.2
        branch  main
        commit  df448c6

about nvim:

NVIM v0.10.2
Build type: Release
LuaJIT 2.1.1713484068
Run "nvim -V1 -v" for more info
github-actions[bot] commented 2 weeks 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.

dapetcu21 commented 2 weeks ago

Still an issue