unblevable / quick-scope

Lightning fast left-right movement in Vim
MIT License
1.43k stars 54 forks source link

Unexpected motions with f, F, t, T on version 2.5.14 #86

Closed xyl1t closed 2 years ago

xyl1t commented 2 years ago

Since version 2.5.14, setting qs_highlight_on_keys to

let g:qs_highlight_on_keys = ['f', 'F', 't', 'T']

makes f, F, t, T not work as expected.

Example

this is a line
        ^

pressing fi puts the cursor on the first occurring i starting from the beginning:

this is a line
  ^

This happens only when the letter occurs more than once in the line.

F{char} puts the cursor to the very beginning of the line, not matter where the cursor is.

But <count><motion> works as expected

Neovim version:

NVIM v0.6.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by brew@Monterey

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/0.6.1/share/nvim"