1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-23 23:21:08 +03:00
wezterm/wezterm-dynamic
Wez Furlong a1cb7a2a88 dynamic: add validate attribute, validate line_height.
It's now possible to specify a validation function for config
items.

Use that to validate line_height:

```
; ./target/debug/wezterm --config line_height=-1
08:41:10.576  ERROR  wezterm > Error converting lua value from overrides to Config struct: Error processing Config::line_height: Illegal value -1 for line_height; it must be positive and greater than zero!; terminating
```

refs: https://github.com/wez/wezterm/issues/2247
2022-07-12 08:41:42 -07:00
..
derive dynamic: add validate attribute, validate line_height. 2022-07-12 08:41:42 -07:00
src dynamic: handle ambiguous {} object vs. array case centrally 2022-07-07 15:42:14 -07:00
tests add wezterm-dynamic crate 2022-05-18 07:47:39 -07:00
Cargo.toml add wezterm-dynamic crate 2022-05-18 07:47:39 -07:00