Relaunch64 icon indicating copy to clipboard operation
Relaunch64 copied to clipboard

When you do a seach a result of the previous seach stays in the search results

Open oziphantom opened this issue 9 years ago • 5 comments

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.

oziphantom avatar Sep 20 '15 14:09 oziphantom

Can't reproduce this bug, or I don't understand it...

sjPlot avatar Sep 27 '15 07:09 sjPlot

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

oziphantom avatar Sep 27 '15 08:09 oziphantom

What settings do you have in the Editor tab? (preferences) "Enter" key keeps... checked? Enable find-by... checked?

sjPlot avatar Sep 27 '15 08:09 sjPlot

"enter" no Find-by yes

oziphantom avatar Sep 27 '15 09:09 oziphantom

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.

sjPlot avatar Sep 27 '15 12:09 sjPlot