rem:  dialog.SuggestedList.selectedIndex = -1; 
add:  var newIndex = -1; var replaceWord = TrimString(dialog.ReplaceWordInput.value); if (replaceWord) { var count = 0; var treeChildren = dialog.SuggestedList.firstChild.nextSibling; if (treeChildren && treeChildren.childNodes) count = treeChildren.childNodes.length;  for (var i = 0; i < count; i++) { var wordInList = GetTreelistValueAt(dialog.SuggestedList, i); if (wordInList == replaceWord) { newIndex = i; break; } } } dialog.SuggestedList.selectedIndex = newIndex; 
context: function ChangeReplaceWord(){  // Calling this triggers SelectSuggestedWord(),  //  so temporarily suppress the effect of that  var saveAllow = allowSelectWord;  allowSelectWord = false;  // Unselect the word in the suggested list when user edits the replacement word  dialog.SuggestedList.selectedIndex = -1;  allowSelectWord = saveAllow;  // Remember the new word  PreviousReplaceWord = dialog.ReplaceWordInput.value;  SetReplaceEnable();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/f856d7cd714dc83148fcfed3fb69de579fe9aabb/EdSpellCheck.js/clean/editor/ui/dialogs/content/EdSpellCheck.js