mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-27 04:06:51 +00:00
Removed unneeded condition
This commit is contained in:
parent
85526a7d46
commit
0f123a6d2f
|
@ -73,7 +73,7 @@ es.SurfaceModel.prototype.select = function( selection, combine ) {
|
|||
this.selection.from !== selection.from ||
|
||||
this.selection.to !== selection.to
|
||||
);
|
||||
if ( !combine || selectionChanged ) {
|
||||
if ( selectionChanged ) {
|
||||
var lastAction = this.states[this.states.length - 1];
|
||||
if ( lastAction instanceof es.Range ) {
|
||||
this.currentStateDistance += Math.abs(
|
||||
|
|
Loading…
Reference in a new issue