Commit 64bd643
committed
Keep a reference to the cursorPosition, reset it to 0, apply the new text with state, restore the cursor position.
1 parent 1844004 commit 64bd643
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
886 | 886 | | |
887 | 887 | | |
888 | 888 | | |
889 | | - | |
| 889 | + | |
890 | 890 | | |
891 | 891 | | |
892 | 892 | | |
893 | 893 | | |
894 | 894 | | |
895 | 895 | | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
896 | 900 | | |
897 | 901 | | |
898 | 902 | | |
| |||
912 | 916 | | |
913 | 917 | | |
914 | 918 | | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
915 | 922 | | |
916 | 923 | | |
917 | 924 | | |
918 | | - | |
919 | 925 | | |
920 | 926 | | |
921 | 927 | | |
| |||
0 commit comments