selection: trim trailing spaces from block selections

The extract_*() family of functions can now optionally treat spaces as
empty cells.

Use this in selection_to_text() to trim trailing spaces from block
selections.

Closes #181
This commit is contained in:
Daniel Eklöf 2020-11-10 19:47:23 +01:00
parent c9de30e2bc
commit 194cf1ce87
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 13 additions and 5 deletions

View file

@ -58,6 +58,8 @@
* Blinking text now uses the foreground color, but dimmed down in its
off state, instead of the background color.
* Trailing spaces are trimmed when copying a block selection
(https://codeberg.org/dnkl/foot/issues/181).
### Deprecated