Skip to content

Commit

Permalink
Bug 376328 - [Compare]Do not respond to select a diff when selecting …
Browse files Browse the repository at this point in the history
…a range in the editor.
  • Loading branch information
libingw committed Apr 9, 2012
1 parent f7f0fb8 commit 0883284
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -601,8 +601,12 @@ exports.TwoWayCompareContainer = (function() {

textView.addRuler(new mRulers.LineNumberCompareRuler(0,"left", {styleClass: "ruler lines"}, {styleClass: "rulerLines odd"}, {styleClass: "rulerLines even"}));

textView.addEventListener("Selection", function() {

textView.addEventListener("Selection", function(evt) {
if(evt.newValue){
if(evt.newValue.start !== evt.newValue.end){
return;
}
}
if(that._compareMatchRenderer._diffNavigator.autoSelecting){
return;
}
Expand Down

0 comments on commit 0883284

Please sign in to comment.