Fix problem with drag-select not clearning multiple cursors

Issue #2486