fix search marker issues - splitting of items with stored rel search markers

This commit is contained in:
Kevin Jahns
2022-03-31 08:35:24 +02:00
parent 285dc79a6b
commit 51c095ec52
3 changed files with 21 additions and 0 deletions

View File

@@ -77,6 +77,10 @@ export const useSearchMarker = (tr, yarray, index, f) => {
}
fsm.rel = 0
}
if (fsm.rel > 0) {
fsm.index -= fsm.rel
fsm.rel = 0
}
if (!createFreshMarker) {
// reused old marker and we moved to a different position
prevItem.marker = false