Merge pull request #628 from peco/consolidate-postinit

remove PostInit
This commit is contained in:
lestrrat 2026-02-17 07:08:54 +09:00 committed by GitHub
commit e3472a53a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 1 additions and 17 deletions

View file

@ -169,7 +169,7 @@ func (t *TcellScreen) Init(cfg *Config) error {
}
t.screen = screen
return t.PostInit(cfg)
return nil
}
func NewTcellScreen() *TcellScreen {

View file

@ -1,10 +0,0 @@
//go:build !windows
// +build !windows
package peco
// PostInit is a no-op on POSIX systems. tcell auto-detects
// color capability via terminfo.
func (t *TcellScreen) PostInit(cfg *Config) error {
return nil
}

View file

@ -1,6 +0,0 @@
package peco
// PostInit is a no-op on Windows. tcell handles input mode automatically.
func (t *TcellScreen) PostInit(cfg *Config) error {
return nil
}