We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72d07e4 commit 75a63c0Copy full SHA for 75a63c0
src/tile.ts
@@ -339,7 +339,7 @@ export class LineTile extends CompositeTile {
339
let {tile, offset} = found
340
if (this.dom.contains(tile.dom)) {
341
if (tile.isText()) return new DOMPos(tile.dom, Math.min(tile.dom.nodeValue!.length, offset))
342
- return tile.domPosFor(offset, side)
+ return tile.domPosFor(offset, tile.flags & TileFlag.Before ? 1 : tile.flags & TileFlag.After ? -1 : side)
343
}
344
let parent = found.tile.parent!, saw = false, last: Tile | undefined
345
for (let ch of parent.children) {
0 commit comments