acejump / AceJump

🅰️ single character search, select, and jump
https://plugins.jetbrains.com/plugin/7086-acejump
GNU General Public License v3.0
1.21k stars 91 forks source link

One-character tags are matched instead of two-characters tags #391

Closed ignacyszreter closed 2 years ago

ignacyszreter commented 2 years ago

Describe the bug Hi, I've recently found out that sometimes my cursor jumps to a wrong place. When there are so many lines that I have both one-character and two-character tags it always jumps to the former. Let's assume that there is T tag and FT tag on the screen. You want to jump to the FT, so you type F and then T - you are landing on T tag line instead of FT.

To Reproduce Steps to reproduce the behaviour:

  1. Open file with so many lines that there are one-character tags all together with two-character.
  2. Pick two-character tag (e.g. FT) that ends with letter that has its corresponding one-character tag (in this case it is T).
  3. click ctrl+; to launch AceJump.
  4. Type F on you keyboard and then type T.
  5. You land on the line tagged by one-character T.

Expected behavior You land on the line tagged by two-character tag (in this face FT)

Screenshots Please note that I had already typed F in order to move to the line 27.

Screenshot 2021-12-19 at 13 59 42

And eventually cursor moved to the line 19 tagged by plain T.

Screenshot 2021-12-19 at 13 59 56

Desktop (please complete the following information):

breandan commented 2 years ago

Based on your description, it would appear that you are using an older version of AceJump. Could you please update to platform version 2021.3 with AceJump 3.8.5 and report back if this issue is still present? Many tagging bugs have been fixed since 3.6.3, I believe this specific issue was fixed in #289 and #327.

ignacyszreter commented 2 years ago

Sorry for unnecessary noise, after upgrading IntelliJ to 2021.3 bug disappeared - it is fixed :)