Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

Tab rename or tab new not working - Attempt to index a number value #52

Open
asmodeus812 opened this issue Aug 21, 2022 · 2 comments
Open

Comments

@asmodeus812
Copy link

asmodeus812 commented Aug 21, 2022

For some reason, when using tabline with only tab capabilities i am unable to make it properly create a new tab with a specified name and / or rename existing tab

    enable = false,
    options = {
        show_bufnr = false,
        show_tabs_only = true,
        show_devicons = true,
        modified_italic = true,
        show_tabs_always = false,
        show_filename_only = true,
    }
}

After executing :TablineTabNew somename. Exact same issue with rename. Looking through the source code, it seems that for some reason it does tonumber(name) and then does an index access on that number, which makes no sense.
image

@badosu
Copy link

badosu commented Dec 8, 2022

I notice the same error when closing a tab between two others typing <c-w><c-q>.

To reproduce:

Configure with show_tabs_only = true, start a session and:

:tabnew
:tabnew
:tabnew
gT
<c-w><c-q> (control-w followed by control-q) (or simply :q)

@shved
Copy link

shved commented Mar 28, 2023

Same error. Now I know how to reproduce it ^_^ The only setting I have for tabline is show_tabs_only = true. Neovim version 0.8.3, hash of the tabline commit being used 5d76dc8616b4b7b892229cc05cd0f4cd0200077a

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants