folke / noice.nvim

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

bug: Cmdline expanding only in one direction when filled whole screen #956

Open superNWHG opened 2 months ago

superNWHG commented 2 months ago

Did you check docs and existing issues?

Neovim version (nvim -v)

0.10.1

Operating system/version

Arch Linux

Describe the bug

When using the cmdline of noice.nvim, it will expand when there is not enough space. This works fine, until you try to expand it too much. When the size of the cmdline reaches the full width of the screen, it keeps expanding only on the right side. I think there is a border on the left side, that should also be on the right side. This will lead to the "Cmdline" text at the top of the cmdline eventually moving out of the screen.

Demo video:

https://github.com/user-attachments/assets/2b75cb1a-8799-4e8c-9833-7394804faf54

Steps To Reproduce

  1. Use the noice.nvim plugin with the Cmdline enabled
  2. Open the Cmdline
  3. Type characters until you see the "Cmdline" text on top of the cmdline moving away

Expected Behavior

The text staying at the right place and having a border on the right.

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
  },
})
github-actions[bot] commented 1 month 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.

superNWHG commented 4 weeks ago

Commenting to keep issue open since it's not resolved

duguyue100 commented 3 days ago

Yep, this affects #970 which is a big bummer when creating new files.