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

Lua cmdline completion leaves duplicated prefix at end of options #28840

Open
frangio opened this issue May 18, 2024 · 0 comments
Open

Lua cmdline completion leaves duplicated prefix at end of options #28840

frangio opened this issue May 18, 2024 · 0 comments
Labels
bug issues reporting wrong behavior cmdline-mode command line, also cmdwin completion Nvim built-in (omni)completion lua stdlib
Milestone

Comments

@frangio
Copy link
Contributor

frangio commented May 18, 2024

Problem

In the command line, completion for the :lua command leaves behind a duplicated prefix after traversing all completions options with <Tab> or going back from the first one with <S-Tab>.

Steps to reproduce

nvim --clean
:lua vim.<Tab><S-Tab>

Expected behavior

The command line should read :lua vim. but it reads :lua vim.vim.

Neovim version (nvim -v)

v0.10.0

Vim (not Nvim) behaves the same?

no (no :lua completion)

Operating system/version

macOS 14.4.1

Terminal name/version

Wezterm 20240203-110809-5046fc22

$TERM environment variable

wezterm

Installation

build from repo

@frangio frangio added the bug issues reporting wrong behavior label May 18, 2024
@frangio frangio changed the title Lua cmdline completion doesn't reset at end of options Lua cmdline completion leaves duplicated prefix at end of options May 18, 2024
@wookayin wookayin added the cmdline-mode command line, also cmdwin label May 18, 2024
@zeertzjq zeertzjq added the completion Nvim built-in (omni)completion label May 18, 2024
@justinmk justinmk added this to the backlog milestone May 21, 2024
@zeertzjq zeertzjq added the lua stdlib label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issues reporting wrong behavior cmdline-mode command line, also cmdwin completion Nvim built-in (omni)completion lua stdlib
Projects
None yet
Development

No branches or pull requests

4 participants