emacs-evil / evil

The extensible vi layer for Emacs.
GNU General Public License v3.0
3.35k stars 283 forks source link

Fix jumping to next/prev paren/brace from a string is not working #1849

Closed mihaicristiantanase closed 9 months ago

mihaicristiantanase commented 9 months ago

Example of test:

{
  fun(a, "T[]est", test());
}

With cursor at [], the commands ]), [(, ]} or [{ don't do anything.

This pull request fixes the problem.

tomdl89 commented 9 months ago

Yeah, I've noticed this before, and never thought to fix it! Thanks @mihaicristiantanase . Can you add tests please? I can if you'd rather, but may take a while to get to it.

mihaicristiantanase commented 9 months ago

Sure, I'll add some tests.

mihaicristiantanase commented 9 months ago

It's done. And with this, I've just found that there are unit tests in the project :)

tomdl89 commented 9 months ago

Excellent tests! Thanks very much 🙏