vim-sneak icon indicating copy to clipboard operation
vim-sneak copied to clipboard

Sneak_f in operator-pending mode is incorrect if the target is on eol/eof

Open tomtomjhj opened this issue 3 years ago • 2 comments

Configuration (tested on latest nvim/vim):

omap f <Plug>Sneak_f

Buggy cases:

  • cursor on q, run dfy
    qwerty
    
    • expected:
      
      
    • actual behavior: the target char is not deleted
      y
      
  • cursor on q, run dfy
    qwerty
    a
    
    • expected:
      
      a
      
    • actual behavior: deletes newline char
      a
      

tomtomjhj avatar Mar 31 '22 09:03 tomtomjhj

The first one is a duplicate of #228. The second one I cannot reproduce.

ggandor avatar Aug 16 '22 11:08 ggandor

Thanks @ggandor ! Does #292 fix #228 ? I've been hesitating here because of lack of test coverage.

justinmk avatar Aug 21 '22 22:08 justinmk