diff --git a/mobile/lib/features/shell/editor/text_editor_controller.dart b/mobile/lib/features/shell/editor/text_editor_controller.dart index b189fa4..eabf4d8 100644 --- a/mobile/lib/features/shell/editor/text_editor_controller.dart +++ b/mobile/lib/features/shell/editor/text_editor_controller.dart @@ -16,8 +16,9 @@ class TextEditorController extends ChangeNotifier { required this.language, required this.totalBytes, }) : _writer = writer, - _originalText = originalText, + _originalText = '', code = CodeLineEditingController.fromText(originalText) { + _originalText = code.text; code.addListener(_onCodeChanged); }