rem: gNextMessageViewIndexAfterDelete = outlinerSelection.currentIndex; 
add: gNextMessageViewIndexAfterDelete = treeSelection.currentIndex; 
context: function SetNextMessageAfterDelete(){  var outlinerSelection = GetThreadOutliner().outlinerBoxObject.selection;  gThreadPaneDeleteOrMoveOccurred = true;  if (outlinerSelection.isSelected(outlinerSelection.currentIndex))    gNextMessageViewIndexAfterDelete = gDBView.msgToSelectAfterDelete;  else if (outlinerSelection.currentIndex > gThreadPaneCurrentSelectedIndex)    // Since the currentIndex (the row with the outline/dotted line) is greater    // than the currently selected row (the row that is highlighted), we need to    // make sure that upon a Delete or Move of the selected row, the highlight    // returns to the currentIndex'ed row.  It is necessary to subtract 1    // because the row being deleted is above the row with the currentIndex.    // If the subtraction is not done, then the highlight will end up on the    // row listed after the currentIndex'ed row.    gNextMessageViewIndexAfterDelete = outlinerSelection.currentIndex - 1;  else    gNextMessageViewIndexAfterDelete = outlinerSelection.currentIndex;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/msgMail3PaneWindow.js/clean/mailnews/base/resources/content/msgMail3PaneWindow.js