Commit e3c412b 1 parent d8d786b commit e3c412b Copy full SHA for e3c412b
File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -131,8 +131,9 @@ export default {
131
131
const newCursorPos = currentCursorPos .end + text .length ;
132
132
this .selection = { start: newCursorPos, end: newCursorPos };
133
133
134
- this .codeData = this .getPlain ();
135
- this .recordChange (this .codeData , this .selection );
134
+ const plain = this .getPlain ();
135
+ this .recordChange (plain, this .selection );
136
+ this .updateContent (plain);
136
137
this .setLineNumbersHeight ();
137
138
};
138
139
const $pre = this .$refs .pre ;
@@ -221,9 +222,6 @@ export default {
221
222
this .undoTimestamp = timestamp;
222
223
},
223
224
updateContent (plain ) {
224
- this .$nextTick (() => {
225
- this .codeData = plain;
226
- });
227
225
this .$emit (" change" , plain);
228
226
},
229
227
restoreStackState (offset ) {
You can’t perform that action at this time.
0 commit comments