Store only hashed version for selection text

This commit is contained in:
Piro / YUKI Hiroshi 2016-08-24 02:12:58 +09:00
parent 2f12218ce6
commit d824402f3d
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@
return;
global.sendAsyncMessage(TreeStyleTabConstants.MESSAGE_TYPE, {
command : TreeStyleTabConstants.COMMAND_REPORT_SELECTION_CHANGE,
text : aEvent.target.getSelection().toString()
text : getHashString(aEvent.target.getSelection().toString().trim())
});
return;

View File

@ -295,7 +295,7 @@ TreeStyleTabWindow.prototype = inherit(TreeStyleTabBase, {
shouldOpenSearchResultAsChild : function TSTWindow_shouldOpenSearchResultAsChild(aTerm)
{
aTerm = aTerm.trim();
aTerm = getHashString(aTerm.trim());
var mode = utils.getTreePref('autoAttach.searchResult');
if (mode == this.kSEARCH_RESULT_ATTACH_ALWAYS) {