Closed WNewhook closed 7 years ago
Ctrl+b is supposed to do: getFromTrash().map( (src : Selection) => treeMgr.swap( src, currentSelection ).map( (sel : Selection) => update( sel ) ) ) ;
getFromTrash().map( (src : Selection) =>
treeMgr.swap( src, currentSelection ).map( (sel : Selection) =>
update( sel ) ) ) ;
but the edit always fails at the first line in applyEdit:
if( this._srcSelection.root() !== trgSelection.root() ) { return none<Selection>() ; }
if( this._srcSelection.root() !== trgSelection.root() ) {
return none<Selection>() ; }
This is actually the correct behaviour. Swap only applies when the two selections share the same tree.
Ctrl+b is supposed to do:
getFromTrash().map( (src : Selection) =>
treeMgr.swap( src, currentSelection ).map( (sel : Selection) =>
update( sel ) ) ) ;
but the edit always fails at the first line in applyEdit:
if( this._srcSelection.root() !== trgSelection.root() ) {
return none<Selection>() ; }