summaryrefslogtreecommitdiff
path: root/src/changes.hh
AgeCommit message (Collapse)Author
2022-11-28Fix pasting after when selections are overlappingMaxime Coste
With overlapping selections, pasting after breaks assumption of SelectionList::for_each as our changes are no longer happening in increasing locations. We hence cannot rely on the ForwardChangeTracker in that case and have to rely on the more general (and more costly) ranges update logic. This interacts poorly with paste linewise pastes and we try to preserve the current behaviour by tracking the last paste position. Overall, this change really begs for overlapping selections to be removed, but we will fix them like that for now. Fixes #4779
2021-03-08Binary search for first range to changeJason Felice
2020-04-06Support empty ranges in replace-ranges highlighterMaxime Coste
2020-01-08Update inserted range when generating InsertCompletionHide hook paramMaxime Coste
The buffer might have been mutated in the mean time. Fixes #3270
2018-06-11Extract update_ranges_ifn as a general utility functionMaxime Coste
2017-11-07Slight code cleanup in change update functionsMaxime Coste
2017-11-04Code style tweakMaxime Coste
2017-01-13Update ranges highlighter options according to buffer changesMaxime Coste