helix-mirror/helix-term
Pascal Kuthe 80d520f469
refactor DocumentDidChange events
in the past DocumentDidChange and SelectionDidChange events were implemented in
a simplistic manner to get a simple prototype out. However, if you want to use
these events in more complex scenarios with interdependencies between the two
handlers the system fell short.

The `SelectionDidChange` event was dispatched before the DocumentDidChange (and
not at all if the selection wasn't manually set) so any handlers that wants to
track selection was not able to map their ranges yet.

The reason for this was actually the way that apply_impl was structured. The
function was slightly refactored to address these problems and enable moving
other range mappings to event handlers.
2024-07-26 14:25:16 +02:00
..
src refactor DocumentDidChange events 2024-07-26 14:25:16 +02:00
tests refactor(commands): trim end of pipe-like output (#10952) 2024-07-13 10:44:48 +09:00
.gitignore Initial import. 2020-05-20 18:14:51 +09:00
build.rs Add icon to Windows executable (#9104) 2024-01-28 18:31:10 +09:00
Cargo.toml build(deps): bump the rust-dependencies group with 3 updates (#11194) 2024-07-16 12:28:41 +09:00