Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

invalid window id #337

Open
Open
@tropical32

Description

This error is pretty hard to reproduce because it shows up inconsistently. I have two windows open in 1 tab and when I use the command HopChar2MW to jump to 2 characters I often get this error:

E5108: Error executing lua .../nvim/site/pack/packer/start/hop.nvim/lua/hop/window.lua:67: Invalid window id: 1012
stack traceback:
        [C]: in function 'nvim_win_get_buf'
        .../nvim/site/pack/packer/start/hop.nvim/lua/hop/window.lua:67: in function 'get_window_context'
        ...re/nvim/site/pack/packer/start/hop.nvim/lua/hop/init.lua:46: in function 'create_hint_state'
        ...re/nvim/site/pack/packer/start/hop.nvim/lua/hop/init.lua:328: in function 'hint_with_callback'
        ...re/nvim/site/pack/packer/start/hop.nvim/lua/hop/init.lua:310: in function 'hint_with'
        ...re/nvim/site/pack/packer/start/hop.nvim/lua/hop/init.lua:546: in function 'hint_char2'
        [string ":lua"]:1: in main chunk

Setup

lua require('hop').setup { keys = 'tnseriaodhfmluvcwyxzbpgjkq' }
nmap s :HopChar2MW<cr>

Version

NVIM v0.8.0
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by builduser

Features: +acl +iconv +tui

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions