hop.nvim icon indicating copy to clipboard operation
hop.nvim copied to clipboard

Markers are out of place when we have `<tab>` in the latest version of NeoVim

Open 110y opened this issue 1 year ago • 0 comments

Problem

Markers are out of place when we have <tab> in the latest version of NeoVim. (Please see the screenshot at the bottom of this issue.)

My environment

  • Linux - amd64
  • NeoVim Version: current master (revision: 8e6971695)
  • hop.nvim Version: current main (revisoin: 03f04348)

How to reproduce this issue

  • minimal init.lua
vim.cmd('set runtimepath+=$PWD/tmp/hop.nvim')
vim.cmd('set noexpandtab')

require('hop').setup{}
  • Procedure
$ mkdir tmp
$ git clone https://github.com/phaazon/hop.nvim.git ./tmp/hop.nvim
$ nvim ./test.txt
  1. type i to change to Insert mode
  2. type <tab>test<esc>
  3. type yyp to duplicate the line
  4. type :HopWord<cr>

Then, the markers are out of place like below:

image

If my investigation is correct, this issue started to happen after this PR (inline virtual text) was merged into the NeoVim. (But sorry, I could not catch the root cause...)

110y avatar May 27 '23 10:05 110y