Fix the help in absence of a bindings file
This commit is contained in:
parent
d2e4b91262
commit
000315165d
8
sdn.cpp
8
sdn.cpp
@ -1551,10 +1551,6 @@ fun load_bindings () {
|
|||||||
learn_named_key (filtered, SYM | kc);
|
learn_named_key (filtered, SYM | kc);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto config = xdg_config_find ("bindings");
|
|
||||||
if (!config)
|
|
||||||
return;
|
|
||||||
|
|
||||||
// Stringization in the preprocessor is a bit limited, we want lisp-case
|
// Stringization in the preprocessor is a bit limited, we want lisp-case
|
||||||
map<string, action> actions;
|
map<string, action> actions;
|
||||||
int a = 0;
|
int a = 0;
|
||||||
@ -1566,6 +1562,10 @@ fun load_bindings () {
|
|||||||
actions[name] = action (a++);
|
actions[name] = action (a++);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto config = xdg_config_find ("bindings");
|
||||||
|
if (!config)
|
||||||
|
return;
|
||||||
|
|
||||||
vector<string> tokens;
|
vector<string> tokens;
|
||||||
while (parse_line (*config, tokens)) {
|
while (parse_line (*config, tokens)) {
|
||||||
if (tokens.empty ())
|
if (tokens.empty ())
|
||||||
|
Loading…
Reference in New Issue
Block a user