11285f3
Pass a MutableAppContext to Element::layout and ::dispatch_event
Click to expand commit body
We need to mutate the app in these cases to relay layout state, so this just makes things easier. We won't be able to perform layout in parallel but it's questionable whether we'll ever actually do that. If we do, we can revisit.
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Nathan Sobo
,
Antonio Scandurra
, and
Max Brunsfeld
created
61f4580
Optimize `Buffer::edits_since` when the version hasn't changed
Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra
and
Nathan Sobo
created
14fcc26
Don't insert empty isomorphic transforms when interpolating
Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra
and
Nathan Sobo
created
a8db064
Get wrapping randomized test passing with wrap width as small as 0
Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra
and
Nathan Sobo
created
174a546
Expand tabs correctly in `TabMap`'s highlighted chunks iterator
Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra
and
Nathan Sobo
created
502f54a
Don't poll foreground futures during `DeterministicExecutor::block_on`
ef42d14
Fix `WrapMap::clip_point` at the end of a soft-wrapped line
Click to expand commit body
If that's the case and `Bias` is `Left` we clip to the last
character of the soft-wrapped line.
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra
and
Nathan Sobo
created
915c710
Ensure that we use the `WrapMap` where appropriate in `DisplayMap`
Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra
and
Nathan Sobo
created
0875a86
Account for the impact of edits on tab expansion
Click to expand commit body
Tab characters are expanded differently based on the column on which
they appear, which edits can affect. Thus, `TabMap::sync` will now
expand edits to the first tab that appears on the line in which the edit
occurred.
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra
and
Nathan Sobo
created
62ad97a
Add randomized test for `DisplayMap::buffer_rows` and fix logic errors
Antonio Scandurra
created
72fdd3f
Start rendering highlighted text and line numbers via the wrap map