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

:HopChar1CurrentLineAC creates two jump characters instead of just jumping #47

Open
araaha opened this issue Sep 19, 2023 · 0 comments
Open

Comments

@araaha
Copy link

araaha commented Sep 19, 2023

Describe the bug
When using :HopChar1CurrentLineAC with the cursor on some character X, if there is at least one more X ahead on the line,
:HopChar1CurrentLineAC creates a jump character for where the cursor is as well as all subsequent Xs.

To Reproduce
Steps to reproduce the behavior:

-- bootstrap lazy
        local lazypath = root .. "/plugins/lazy.nvim"
        if not vim.loop.fs_stat(lazypath) then
          vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
        end
        vim.opt.runtimepath:prepend(lazypath)

-- install hop.nvim
        local plugins = {
          { "smoka7/hop.nvim", opts = {} },
        }
        require("lazy").setup(plugins,{})
--- How You use hop...

Suppose we have the line live love laugh with the cursor on the l on love. Running :HopChar1CurrentLineAC
will create a jump character to jump on the l for love and another one to jump on the l for laugh.

Expected behavior
The cursor should jump directly to the l on love without creating a jump character, similar to what you would expect with using f,t,F,T.

version (please complete the following information):

  • Nvim version: 9.0.2
  • hop.nvim version: master

Additional context
This also applies to :HopChar1CurrentLineBC (but is perhaps expected behaviour for :HopChar1CurrentLine?)

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

No branches or pull requests

1 participant