mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
WTF-718 Fixes missing grid issue when running CmdRunner (#740)
Closes #718 and closes #730. Signed-off-by: Chris Cummer <chriscummer@me.com>
This commit is contained in:
@@ -27,7 +27,6 @@ type Settings struct {
|
||||
|
||||
// NewSettingsFromYAML loads the cmdrunner portion of the WTF config
|
||||
func NewSettingsFromYAML(name string, moduleConfig *config.Config, globalConfig *config.Config) *Settings {
|
||||
|
||||
settings := Settings{
|
||||
common: cfg.NewCommonSettingsFromModule(name, defaultTitle, defaultFocusable, moduleConfig, globalConfig),
|
||||
|
||||
@@ -37,7 +36,11 @@ func NewSettingsFromYAML(name string, moduleConfig *config.Config, globalConfig
|
||||
maxLines: moduleConfig.UInt("maxLines", 256),
|
||||
}
|
||||
|
||||
settings.width, settings.height = utils.CalculateDimensions(moduleConfig, globalConfig)
|
||||
width, height, err := utils.CalculateDimensions(moduleConfig, globalConfig)
|
||||
if err == nil {
|
||||
settings.width = width
|
||||
settings.height = height
|
||||
}
|
||||
|
||||
return &settings
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user