Relaunch64
Relaunch64 copied to clipboard
When you do a seach a result of the previous seach stays in the search results
Search for something, then next a couple of times, then search for something new, next through and you will get a result from before, usually first or second result for me.
Can't reproduce this bug, or I don't understand it...
make a new file type this fish troll tree troll
Search for tree, then without closing the find box, search for troll, press F3 it will highlight tree, press again 2nd troll, press again 1st troll, again 2nd troll
What settings do you have in the Editor tab? (preferences) "Enter" key keeps... checked? Enable find-by... checked?
"enter" no Find-by yes
Ok, got it. This is "working as intended", because a new search term is recognized as new item first when you hit the enter key. When pressing F3
, the currently "selected" item is chosen (jComboBoxFind.getSelectedItem();
). However, if you enter a new keyword into the search field, and do not hit "enter", the new keyword is not added as "item", thus jComboBoxFind.getSelectedItem();
returns the old keyword.
So, to make it work properly, just do:
Search for tree, then without closing the find box, search for troll, press enter, press F3 it will highlight troll...
Getting the text directly does not work somehow, I have to figure out whether I can improve / change this behavior.