0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2025-01-09 08:20:08 -05:00

Fix bug in updating path correctly.

This commit is contained in:
Neil Jenkins 2012-04-03 11:32:56 +10:00
parent 9b5512bf98
commit 5c9420c7fa
2 changed files with 6 additions and 4 deletions

File diff suppressed because one or more lines are too long

View file

@ -661,7 +661,7 @@
});
// Merge adjacent inlines:
range = getRangeAndRemoveBookmark();
getRangeAndRemoveBookmark( range );
if ( fixer ) {
range.collapse( false );
}
@ -777,7 +777,8 @@
}
// 8. Restore selection
setSelection( getRangeAndRemoveBookmark() );
getRangeAndRemoveBookmark( range );
setSelection( range );
updatePath( range, true );
// 9. We're not still in an undo state
@ -1384,7 +1385,8 @@
}
nodeAfterSplit = child;
}
setSelection( createRange( nodeAfterSplit, 0 ) );
range = createRange( nodeAfterSplit, 0 );
setSelection( range );
updatePath( range, true );
// Scroll into view