Skip to content

Align wrapped lines per line; single-line text fields - #6

Merged
kitlangton merged 2 commits into
devfrom
hex-polish-text
Oct 23, 2026
Merged

kitlangton merged 2 commits into
devfrom
hex-polish-text

Conversation

@kitlangton

Copy link
Copy Markdown
Contributor

Found driving Hex on a real Mac: centred onboarding copy wrapped as a left-aligned block, and the History search field wrapped onto two lines.

  • Wrapping Align::Center/End text aligns each line in its wrap width (TextSystem::layout_aligned).
  • El::single_line(): no wrap, horizontal scroll to the caret, clipped to the field, clicks offset by the scroll. rune-kit TextInput (non-multiline) and List search opt in.

Tests: centred_wrapped_lines_centre_each_line_in_the_wrap_width, single_line_input_scrolls_to_the_caret_instead_of_wrapping; cargo test --workspace passes. Clippy errors on dev are pre-existing.

Centred or end-aligned wrapping text now aligns each line inside the wrap
width. El::single_line() keeps a text input on one line, scrolling sideways to
the caret and clipping to the field; rune-kit TextInput and List search opt in.
@kitlangton
kitlangton merged commit 8d90caa into dev Oct 23, 2026
kitlangton added a commit that referenced this pull request Oct 23, 2026
A justify flag on TextSpec behind an El builder, on top of #6's per-line Align. Wrapped
justified lines use Parley's per-line justification, which starts the last line from the
text's direction. TextStyle and the exhaustive Align enum are untouched.
ImBIOS pushed a commit to ImBIOS/rune that referenced this pull request Oct 26, 2026
* Align wrapped lines per line and add single-line text fields

Centred or end-aligned wrapping text now aligns each line inside the wrap
width. El::single_line() keeps a text input on one line, scrolling sideways to
the caret and clipping to the field; rune-kit TextInput and List search opt in.

* Changelog: PR number
ImBIOS pushed a commit to ImBIOS/rune that referenced this pull request Oct 26, 2026
A justify flag on TextSpec behind an El builder, on top of anomalyco#6's per-line Align. Wrapped
justified lines use Parley's per-line justification, which starts the last line from the
text's direction. TextStyle and the exhaustive Align enum are untouched.
adeerkhan added a commit to adeerkhan/rune that referenced this pull request Nov 12, 2026
The completion thread polls the device in a loop, and `SurfaceRenderer` had no
`Drop`, so its fields dropped in declaration order: the wgpu `Device` first,
then the sender that ends the thread's wait. The thread was therefore still
polling a device that was being torn down, and the poll reached driver state
that had already gone.

It shows up as a SIGSEGV in the Vulkan driver at process exit:

  anomalyco#2  <ash::device::Device>::get_semaphore_counter_value ()
  anomalyco#3  <wgpu_hal::vulkan::Fence>::get_latest ()
  anomalyco#6  <wgpu_core::device::resource::Device>::maintain ()
  anomalyco#10 <wgpu::api::device::Device>::poll ()
  anomalyco#11 <rune::native_surface::pipeline::SurfaceRenderer>::with_pipeline ({closure#1})

The thread is now joined in `Drop`, before the device is dropped.
Hona added a commit that referenced this pull request Nov 23, 2026
Hona added a commit that referenced this pull request Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant