mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-05-03 06:46:42 -04:00
config: new option - trim-trailing-spaces-from-selection
When enabled, trailing spaces are trimmed from both regular and block selections.
This commit is contained in:
parent
194cf1ce87
commit
20aab0871f
6 changed files with 15 additions and 5 deletions
4
config.c
4
config.c
|
|
@ -601,6 +601,9 @@ parse_section_main(const char *key, const char *value, struct config *conf,
|
|||
mbstowcs(conf->word_delimiters, value, chars + 1);
|
||||
}
|
||||
|
||||
else if (strcmp(key, "trim-trailing-spaces-from-selection") == 0)
|
||||
conf->trim_trailing_spaces_from_selection = str_to_bool(value);
|
||||
|
||||
else if (strcmp(key, "scrollback") == 0) {
|
||||
LOG_WARN("deprecated: %s:%d: [default]: scrollback: use 'scrollback.lines' instead'", path, lineno);
|
||||
|
||||
|
|
@ -2081,6 +2084,7 @@ config_load(struct config *conf, const char *conf_path,
|
|||
.server_socket_path = get_server_socket_path(),
|
||||
.presentation_timings = false,
|
||||
.hold_at_exit = false,
|
||||
.trim_trailing_spaces_from_selection = false,
|
||||
|
||||
.tweak = {
|
||||
.fcft_filter = FCFT_SCALING_FILTER_LANCZOS3,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue