Permalink
Browse files

Bug 376328 - [Compare]Do not respond to select a diff when selecting …

…a range in the editor.
  • Loading branch information...
1 parent f7f0fb8 commit 088328499658a87514645882895937676ce9b700 @libingw libingw committed Apr 9, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 bundles/org.eclipse.orion.client.core/web/orion/compare/compare-container.js
@@ -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;
}

0 comments on commit 0883284

Please sign in to comment.