fix: incorrect cursor movement after undo/redo shortcuts

pull/400/head
Dmitry Sboychakov 4 years ago
parent a5a796c4da
commit 7dd2b65a54
  1. 2
      lib/src/widgets/controller.dart

@ -85,7 +85,7 @@ class QuillController extends ChangeNotifier {
}
void _handleHistoryChange(int? len) {
if (len! > 0) {
if (len != 0) {
// if (this.selection.extentOffset >= document.length) {
// // cursor exceeds the length of document, position it in the end
// updateSelection(

Loading…
Cancel
Save