qutebrowser: unwrap list from keybinding removal

The option to remove the default keybindings by setting the
`programs.qutebrowser.enableDefaultKeybindings` variable to `false`
had a list wrapped around the `config.py` line. This would cause a
type coercion error.

PR #1410
This commit is contained in:
seylerius 2020-07-27 03:54:11 -05:00 committed by Robert Helgesson
parent 7b73f84071
commit 89adfc9f01
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
2 changed files with 4 additions and 1 deletions

View file

@ -261,7 +261,7 @@ in {
++ mapAttrsToList (formatDictLine "c.url.searchengines") cfg.searchEngines
++ mapAttrsToList (formatDictLine "c.bindings.key_mappings")
cfg.keyMappings
++ optional (!cfg.enableDefaultBindings) [ "c.bindings.default = {}" ]
++ optional (!cfg.enableDefaultBindings) "c.bindings.default = {}"
++ mapAttrsToList formatKeyBindings cfg.keyBindings
++ optional (cfg.extraConfig != "") cfg.extraConfig);
};