diff --git a/src/renderer/Options.zig b/src/renderer/Options.zig index c8b58c8c7..7450dd9f2 100644 --- a/src/renderer/Options.zig +++ b/src/renderer/Options.zig @@ -5,7 +5,9 @@ const font = @import("../font/main.zig"); const renderer = @import("../renderer.zig"); const Config = @import("../config.zig").Config; -/// The app configuration. +/// The app configuration. This must NOT be stored by any termio implementation. +/// The memory it points to is NOT stable after the init call so any values +/// in here must be copied. config: *const Config, /// The font group that should be used. diff --git a/src/termio/Options.zig b/src/termio/Options.zig index 06af6b4d0..28a10f1f4 100644 --- a/src/termio/Options.zig +++ b/src/termio/Options.zig @@ -11,7 +11,9 @@ grid_size: renderer.GridSize, /// The size of the viewport in pixels. screen_size: renderer.ScreenSize, -/// The app configuration. +/// The app configuration. This must NOT be stored by any termio implementation. +/// The memory it points to is NOT stable after the init call so any values +/// in here must be copied. config: *const Config, /// The render state. The IO implementation can modify anything here. The