Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cmdline popup is off by two characters (prompt?) #122

Closed
pwntester opened this issue Oct 26, 2022 · 4 comments · Fixed by #639
Closed

Cmdline popup is off by two characters (prompt?) #122

pwntester opened this issue Oct 26, 2022 · 4 comments · Fixed by #639
Labels
bug Something isn't working

Comments

@pwntester
Copy link

pwntester commented Oct 26, 2022

Describe the bug
The Cmdline and cmdline-popups seem to be off by two characters as shown in the image:
image

Which version of Neovim are you using?
Nightly

To Reproduce

          views = {
            cmdline_popup = {
              -- https://github.com/MunifTanjim/nui.nvim/tree/main/lua/nui/popup
              position = {
                row = 15,
                col = "50%",
              },
              size = {
                width = 150,
                height = "auto",
              },
            },
            popupmenu = {
              relative = "editor",
              position = {
                row = 18,
                col = "50%",
              },
              size = {
                width = 150,
                height = 10,
              },
              border = {
                style = "rounded",
                padding = { 0, 1 },
              },
              win_options = {
                winhighlight = { Normal = "Normal", FloatBorder = "DiagnosticInfo" },
              },
            },
          }

Expected Behavior
Both windows are aligned

@pwntester pwntester added the bug Something isn't working label Oct 26, 2022
@pwntester
Copy link
Author

Even if I set the width of the cmdline to 148 chars, the two windows are shifted:

image

Also, is there anyway to trigger autocompletion as you write?

Thanks!

@pwntester pwntester changed the title Cmdline popup is off by one character (prompt?) Cmdline popup is off by two character (prompt?) Oct 26, 2022
@pwntester pwntester changed the title Cmdline popup is off by two character (prompt?) Cmdline popup is off by two characters (prompt?) Oct 26, 2022
@folke
Copy link
Owner

folke commented Oct 26, 2022

I know what's causing this. Something on my end, and also something at Nui

@folke folke closed this as completed in b152bf5 Oct 26, 2022
@folke
Copy link
Owner

folke commented Oct 26, 2022

Fixed, but you also need to update Nui

@pwntester
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants