config: clean up cursor style configuration

This commit is contained in:
SoraTenshi
2023-09-03 14:20:18 +02:00
committed by Mitchell Hashimoto
parent 26f589e3e0
commit 6faed268e0
3 changed files with 26 additions and 4 deletions

View File

@@ -266,7 +266,7 @@ pub const DerivedConfig = struct {
else
null,
.cursor_style = config.@"cursor-style",
.cursor_style = config.@"cursor-style".toTerminalCursorStyle(config.@"cursor-style-blink"),
.cursor_text = if (config.@"cursor-text") |txt|
txt.toTerminalRGB()
else