Prefer LightRenderer over tcell on Windows

For mouse support on mintty

Fix #3847
This commit is contained in:
Junegunn Choi 2024-06-12 21:53:18 +09:00
parent 0684a20ea3
commit dca2262fe6
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -711,7 +711,7 @@ func NewTerminal(opts *Options, eventBox *util.EventBox, executor *util.Executor
} }
} }
if fullscreen { if fullscreen {
if tui.HasFullscreenRenderer() { if !tui.IsLightRendererSupported() {
renderer = tui.NewFullscreenRenderer(opts.Theme, opts.Black, opts.Mouse) renderer = tui.NewFullscreenRenderer(opts.Theme, opts.Black, opts.Mouse)
} else { } else {
renderer, err = tui.NewLightRenderer(ttyin, opts.Theme, opts.Black, opts.Mouse, opts.Tabstop, opts.ClearOnExit, renderer, err = tui.NewLightRenderer(ttyin, opts.Theme, opts.Black, opts.Mouse, opts.Tabstop, opts.ClearOnExit,