Commit Graph

7 Commits

Author SHA1 Message Date
Alexandre Bury
e7a813b383 Fix chunk_iterator with empty spans after hard-stop 2020-08-26 16:44:56 -07:00
Alexandre Bury
b5651e3ac4 Add test for empty span after hard-stop 2020-08-26 16:44:41 -07:00
Alexandre Bury
7e32e0649e Fix handling of multi-bytes newlines 2020-08-26 15:19:51 -07:00
Alexandre Bury
f13914a272 Add test 2020-08-26 15:19:40 -07:00
James Tai
bc49eebeb8
Fix text alignment when wrapped (#471)
* Fix text alignment when wrapped

This changes the `LinesIterator` to return a `width` that corresponds
with the actual total length of the chunks, rather than returning the
total available width, when a line is wrapped. This effectively reverts
20cb033b8d (I am not sure why that commit
changed it).

* Add `is_wrapped` flag to `Row`

* Fix TextArea width with wrapped rows

Co-authored-by: Alexandre Bury <alexandre.bury@gmail.com>
2020-07-25 16:51:33 -07:00
Alexandre Bury
d31d0d0d76 Derive more stuff 2020-07-13 12:54:03 -07:00
Alexandre Bury
4154f99b44 Split non-backend code into cursive-core 2020-04-23 13:46:00 -07:00