You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After jumping via <Plug>Lightspeed_s, <Plug>Lightspeed_S, <Plug>Lightspeed_omni_s, <Plug>Lightspeed_gs, <Plug>Lightspeed_gS or <Plug>Lightspeed_omni_gs and calling a change operation (e.g. cw) lightspeed will intercept the first <BS> that I press. Afterwards everything works fine. Even if move the cursor after the jump via h or l the next change is still affected. But when I move the cursor after the jump with w, e, b or so the next change works fine.
Here is an example to better illustrate the issue (minimal config, only lightspeed installed and no further configuration):
open nvim, enter insert mode and type some text (| is the cursor)
this is just some text for demonstration|
press <esc> to go back to normal mode and jump to the word "some" by pressing Sso
this is just |some text for demonstration
start changing text by pressing ce to delete the word "some" and insert some alternative
this is just yeah| text for demonstration
press backspace and realize that nothing happens
this is just yeah| text for demonstration
press backspace again, now the character before the cursor gets deleted properly, from now on backspace works fine again
From my own testing it only happens for the two character jump commands and only in combination with changing text. Deleting something after the jump and then entering insert mode does not show the described behavior.
I had a brief look in the source code and could see that you are handling the change operator and backspace in some cases, but from my short read I did not understand for what reason and if this could be the cause for this minor bug here. But maybe it is rather obvious for you why this is happening and if it could be avoided easily 🙂
The text was updated successfully, but these errors were encountered:
If I comment out handle-interrupted-change-op! in the exit forms, the same thing happens, so the problem is elsewhere. Maybe this is related to #124? ¯_(ツ)_/¯
After jumping via
<Plug>Lightspeed_s
,<Plug>Lightspeed_S
,<Plug>Lightspeed_omni_s
,<Plug>Lightspeed_gs
,<Plug>Lightspeed_gS
or<Plug>Lightspeed_omni_gs
and calling a change operation (e.g.cw
) lightspeed will intercept the first<BS>
that I press. Afterwards everything works fine. Even if move the cursor after the jump viah
orl
the next change is still affected. But when I move the cursor after the jump withw
,e
,b
or so the next change works fine.Here is an example to better illustrate the issue (minimal config, only lightspeed installed and no further configuration):
|
is the cursor)<esc>
to go back to normal mode and jump to the word "some" by pressingSso
ce
to delete the word "some" and insert some alternativeFrom my own testing it only happens for the two character jump commands and only in combination with changing text. Deleting something after the jump and then entering insert mode does not show the described behavior.
I had a brief look in the source code and could see that you are handling the change operator and backspace in some cases, but from my short read I did not understand for what reason and if this could be the cause for this minor bug here. But maybe it is rather obvious for you why this is happening and if it could be avoided easily 🙂
The text was updated successfully, but these errors were encountered: