Commit 0a1f223b79
Verified · cmc
Layout: unified · split
Sources/OrgEditorAppKit/OrgEditor.swift +2
| @@ -1296,6 +1296,8 @@ extension OrgEditor: DocumentBuffer { | ||
| 1296 | 1296 | var state = view |
| 1297 | 1297 | state.selection = [selected.location..<NSMaxRange(selected)] |
| 1298 | 1298 | let mapped = state.mapped(through: edits) |
| 1299 | // Shrunk columns were measured on the old text. | |
| 1300 | shrunk = ShrunkColumns() | |
| 1299 | 1301 | load(document.text) |
| 1300 | 1302 | setFolds(FoldState(folds: mapped.folds, bodyFolds: mapped.bodyFolds, wrapperFolds: mapped.wrapperFolds)) |
| 1301 | 1303 | let selection = mapped.selection[0] |