Skip to content

Commit 19c620b

Browse files
committed
Make sure the cantEdit flag is reset when setValue is called
Closes #5974
1 parent 5b341e1 commit 19c620b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/model/Doc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ Doc.prototype = createObj(BranchChunk.prototype, {
7575
let top = Pos(this.first, 0), last = this.first + this.size - 1
7676
makeChange(this, {from: top, to: Pos(last, getLine(this, last).text.length),
7777
text: this.splitLines(code), origin: "setValue", full: true}, true)
78+
this.cantEdit = false
7879
if (this.cm) scrollToCoords(this.cm, 0, 0)
7980
setSelection(this, simpleSelection(top), sel_dontScroll)
8081
}),

0 commit comments

Comments
 (0)