diff --git a/readline.go b/readline.go index 63b9171..03520cc 100644 --- a/readline.go +++ b/readline.go @@ -318,6 +318,9 @@ func (i *Instance) SetConfig(cfg *Config) *Config { } old := i.Config i.Config = cfg + if cfg.Painter == nil { + cfg.Painter = &defaultPainter{} + } i.Operation.SetConfig(cfg) i.Terminal.SetConfig(cfg) return old