fix bug with ghost selections

This commit is contained in:
nightwing 2012-04-14 18:20:27 +04:00
commit b77c3b348e
5 changed files with 58 additions and 23 deletions

View file

@ -141,7 +141,7 @@ var Cursor = function(parentEl) {
this.update = function(config) {
this.config = config;
if (this.session.selectionMarkerCount > 1) {
if (this.session.selectionMarkerCount > 0) {
var selections = this.session.$selectionMarkers;
var i = 0, sel, cursorIndex = 0;