subscribeToColorSchemeUpdates needs a mutable reference

This commit is contained in:
Jeffrey C. Ollie 2024-09-23 16:24:21 -05:00 committed by Tim Culverhouse
parent c89b75ebe3
commit 2cc1eb77f8

View file

@ -953,7 +953,7 @@ pub fn queryColor(_: Vaxis, tty: AnyWriter, kind: Cell.Color.Kind) !void {
/// capability. Support can be detected by checking the value of
/// vaxis.caps.color_scheme_updates. The initial scheme will be reported when
/// subscribing.
pub fn subscribeToColorSchemeUpdates(self: Vaxis, tty: AnyWriter) !void {
pub fn subscribeToColorSchemeUpdates(self: *Vaxis, tty: AnyWriter) !void {
try tty.writeAll(ctlseqs.color_scheme_request);
try tty.writeAll(ctlseqs.color_scheme_set);
self.state.color_scheme_updates = true;