From 000315165df66f23519fd3b503197c9818562d90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Thu, 8 Oct 2020 13:31:54 +0200 Subject: [PATCH] Fix the help in absence of a bindings file --- sdn.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdn.cpp b/sdn.cpp index 88ed181..83fbbd1 100644 --- a/sdn.cpp +++ b/sdn.cpp @@ -1551,10 +1551,6 @@ fun load_bindings () { 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 map actions; int a = 0; @@ -1566,6 +1562,10 @@ fun load_bindings () { actions[name] = action (a++); } + auto config = xdg_config_find ("bindings"); + if (!config) + return; + vector tokens; while (parse_line (*config, tokens)) { if (tokens.empty ())