We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2917c38 commit 20b65d6Copy full SHA for 20b65d6
terminfo/dynamic/dynamic.go
@@ -185,16 +185,10 @@ func (tc *termcap) setupterm(name string) error {
185
func LoadTerminfo(name string) (*terminfo.Terminfo, string, error) {
186
var tc termcap
187
if err := tc.setupterm(name); err != nil {
188
- if err != nil {
189
- return nil, "", err
190
- }
+ return nil, "", err
191
}
192
t := &terminfo.Terminfo{}
193
- // If this is an alias record, then just emit the alias
194
t.Name = tc.name
195
- if t.Name != name {
196
- return t, "", nil
197
198
t.Aliases = tc.aliases
199
t.Colors = tc.getnum("colors")
200
t.Columns = tc.getnum("cols")
0 commit comments