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
Describe the bug
When you open a new file and use AceJump it works correctly. But if you add a new line and search again it seems like it doesn't refresh the document and highlights the words as if they were on a previous line, so it marks a line higher than it really is.
The more lines you add, the more the gap between the highlighting and the word you are looking for. In addition, everything new you add is not found.
To Reproduce
Steps to reproduce the behavior:
Open a file with text.
Add a new line at the top of the file
Search a word that's in the second line
Highlights the first line
Expected behavior
It should match the highlighted line with the current word.
Screenshots
Here I was searching for 'aaa' which is in the second line and it's highlighting the first line.
Desktop (please complete the following information):
OS: Windows
IDE and version: Rider 2021.1.2
AceJump version: 3.8.0
Additional context
Looks like it caches the file and once you write new lines / stuff it doesn't refresh it so it's always looking for the old version line.
The text was updated successfully, but these errors were encountered:
Hi @albrtbc, thank you for reporting this issue! I am a little surprised it slipped through undetected. Indeed, it was caused by a stale cache. I have added a test and confirmed the issue is no longer present as of 3.8.1. Please feel free to give it a try and report back should you encounter any other issues.
cc: @chylex Please have a look at the fix and let me know if you have any questions or concerns.
Describe the bug
When you open a new file and use AceJump it works correctly. But if you add a new line and search again it seems like it doesn't refresh the document and highlights the words as if they were on a previous line, so it marks a line higher than it really is.
The more lines you add, the more the gap between the highlighting and the word you are looking for. In addition, everything new you add is not found.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should match the highlighted line with the current word.
Screenshots
![image](https://user-images.githubusercontent.com/4415950/118155705-cf981f00-b418-11eb-8a9f-722f650df809.png)
Here I was searching for 'aaa' which is in the second line and it's highlighting the first line.
Desktop (please complete the following information):
Additional context
Looks like it caches the file and once you write new lines / stuff it doesn't refresh it so it's always looking for the old version line.
The text was updated successfully, but these errors were encountered: