fix: table number option extend (#947)
* fix: prevent error when overriding tables with numbers Fixes #944 - refactor `config.smarter_depth_2_extend` - use `config.smarter_depth_2_extend` for setting `layout_config` in `Picker:new` * test: check that can override a table with a number for layout configuration
This commit is contained in:
@@ -89,4 +89,14 @@ describe('layout_strategies', function()
|
||||
{horizontal={height=50}}, {horizontal={height=100}}, {height=120}
|
||||
)
|
||||
|
||||
test_defaults_key("should handle user config overriding a table with a number",
|
||||
'height','horizontal',120,
|
||||
{height={padding=5}},{height=120},{}
|
||||
)
|
||||
|
||||
test_defaults_key("should handle user oneshot overriding a table with a number",
|
||||
'height','horizontal',120,
|
||||
{},{height={padding=5}},{height=120}
|
||||
)
|
||||
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user