ggandor / lightspeed.nvim

deprecated in favor of leap.nvim
MIT License
1.56k stars 28 forks source link

`conceallevel` not restored in operator-pending mode f/F/t/T #61

Closed zeertzjq closed 2 years ago

zeertzjq commented 2 years ago

Steps to reproduce:

  1. Open a .tex file with the following content:
    \begin{document}
    $\beta$
    \end{document}
  2. :set conceallevel=2
  3. Press ytt
  4. conceallevel becomes 0

Operator-pending mode z and Z do restore conceallevel, but f/F/t/T don't.

ggandor commented 2 years ago

Yep, indeed... In operator-pending mode for f/t I forgot to use the exit form that triggers the LightspeedLeave User event (which in turn triggers restoring the editor options). Thanks very much for reporting!