tuikit
tuikit copied to clipboard
Disable leading newline
This change adds a new TermOption, "has_leading_newline".
When this option is set to false (default is true), TermLock::ensure_height() would not add a leading newline (=the separator between the original line contents and the new contents) to the output anymore.
When it is set to true, there is no change in ensure_height()'s behavior (the leading newline is present).
I'm using this option and setting it to false in my version of skim (https://github.com/c4eater/skim/tree/disable-leading-newline) because the output looks better without the leading newline.
Here are some screenshots of skim with and without the leading newline: If has_leading_newline is false:
![](https://user-images.githubusercontent.com/2597360/166234538-8b7bb01b-f773-4e9f-b9d4-3fead2c0e275.png)
If has_leading_newline is true (default):
![](https://user-images.githubusercontent.com/2597360/166234422-51fdf340-fc2f-4473-90e2-d86d8125bceb.png)