Files
zed/crates
Eric Holk ca94bed79e Keep trailing semicolons attached to the preceding word when wrapping (#54546)
When soft-wrapping text, `LineWrapper::is_word_char` determines which
characters stick to the preceding word at wrap boundaries. The list
already includes trailing punctuation like `,`, `.`, and `:`, but was
missing `;`. As a result, a message like "we won't pass it on; no big
deal" could wrap with `;` isolated at the start of the next line (`on` /
`; no`).

This was most visible in the agent panel message editor but affects any
surface that uses soft-wrapping.

Also adds `assert_word("on;")` to `test_is_word_char` to guard against
regressions.

Release Notes:

- Fixed trailing `;` being wrapped to a new line instead of staying
attached to the preceding word.
2026-04-22 14:57:44 -07:00
..
2026-04-22 15:02:57 +00:00
2026-04-22 15:02:57 +00:00
2026-04-17 10:51:32 -04:00
2026-04-05 23:05:35 +01:00
2026-03-27 14:56:46 -07:00
2026-03-11 03:08:39 +00:00
2026-04-21 07:25:22 +00:00
2026-03-30 09:06:59 +00:00
2026-04-22 15:02:57 +00:00
2026-04-21 07:25:22 +00:00
2026-02-26 18:36:50 +01:00
…
2026-04-22 15:02:57 +00:00