Replies: 6 comments 2 replies
-
thank you! I'm able to reproduce. I fixed the crash already, but there's still a display update issue after delete that I'll tackle at some point |
Beta Was this translation helpful? Give feedback.
-
thank you!
It turns out |
Beta Was this translation helpful? Give feedback.
-
I think I managed to fix it. Fixes are on branch |
Beta Was this translation helpful? Give feedback.
-
Wow, great progress - thank you!
Now, the Find mode has improved, but it's not fixed yet. There seems to be more than one issue at play, and it's a bit beyond my comprehension of your code :-) So I put my QA hat on and tested this case more thoroughly. Let me give you more detailed steps to reproduce. I copied your text 5 times in STTextView and in Sublime. Then I click "next" button in the Find toolbar. The view should've scrolled to line 543. But I got this instead: As you can see, it underscrolls. I click "next" button again. The next match should have been on line 1073. Instead, I got this: This was an overscroll. It actually scrolled passed the 4th occurrence. Now, if I manually scroll back up to the 4th occurrence in line 1603, it is not highlighting the match. So I put the cursor on line just above 1603 and clicked next again. It now highlights the word, but now the line numbers have gone missing in the ruler view. And I click "next" again. Now the line numbers are back, and 1603 line match is highlighted correctly. Though I'd expect it to go to the line 2133 now, that's a minor thing. Now, the worst thing is that if I simply go back to the top of the document and search again, I get different results. But if I kill the app and start over from scratch, then I can reproduce it exactly as I described above. Not sure whether it is helpful or not, I did my best :-) |
Beta Was this translation helpful? Give feedback.
-
Hi Marcin, I see you've made quite a few changes recently so I retested the above scenario on the new build, and it still reproducible. I figured the issue is in
|
Beta Was this translation helpful? Give feedback.
-
In the meantime, I refactored that part of code significanly and I'm closing this one, feel free to open new discussion if there's something different to discuss. |
Beta Was this translation helpful? Give feedback.
-
Hi Marcin,
I've been testing your sample app with the line number ruler and have come across a use case that results in a crash consistently. Here are the steps to reproduce:
Then you get this:
It works fine when selecting and deleting all text (Cmd+A, Del)
Also, something weird is happening when I select all text, delete, and then revert back by Cmd-Z. Only the first line appears back until I click anywhere or press any key.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions