chrisgrieser / nvim-spider

Use the w, e, b motions like a spider. Move by subwords and skip insignificant punctuation.
MIT License
663 stars 13 forks source link

[Bug]: Last word in line has off-by-one with operators #5

Closed jgollenz closed 1 year ago

jgollenz commented 1 year ago

Bug Description

// no trailing whitespace in the line below
nvim-spider is great
               ^

Doing e.g. ce will leave you with

nvim-spider is t
               ^

It works fine when there is a trailing whitespace

neovim version

v0.9.0-dev-1312+g908494889

Make sure you have done the following

chrisgrieser commented 1 year ago

oh boy, vim indeed has some weird quirks when it comes to indeces. Fixed

jgollenz commented 1 year ago

Indeed. Interesting how one never notices these things until they change :grin: thanks a lot for the quick fix!