aboutsummaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-11-15 00:57:58 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2015-11-15 01:07:05 +0100
commit2a97c0121591dbfd3a11790e386619c2e3299e52 (patch)
treec1658e4eb838e1bae7ce1f92deee2a751618829a /degesch.c
parent152ba0847d739067f2086c382a878c59d6d8d57a (diff)
downloadxK-2a97c0121591dbfd3a11790e386619c2e3299e52.tar.gz
xK-2a97c0121591dbfd3a11790e386619c2e3299e52.tar.xz
xK-2a97c0121591dbfd3a11790e386619c2e3299e52.zip
degesch: make the libedit backend work again
Diffstat (limited to 'degesch.c')
-rw-r--r--degesch.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/degesch.c b/degesch.c
index 9276b8b..723ef2b 100644
--- a/degesch.c
+++ b/degesch.c
@@ -9373,6 +9373,7 @@ on_editline_display_backlog (EditLine *editline, int key)
(void) key;
display_backlog (g_ctx);
+ return CC_NORM;
}
static unsigned char
@@ -9382,6 +9383,7 @@ on_editline_display_full_log (EditLine *editline, int key)
(void) key;
display_full_log (g_ctx);
+ return CC_NORM;
}
static unsigned char
@@ -10048,12 +10050,13 @@ main (int argc, char *argv[])
// At this moment we can safely call any "on_change" callbacks
config_schema_call_changed (ctx.config.root);
- // Finally, we juice the configuration for some servers to create
- load_servers (&ctx);
-
+ // Initialize input so that we can switch to new buffers
refresh_prompt (&ctx);
input_start (&ctx.input, argv[0]);
+ // Finally, we juice the configuration for some servers to create
+ load_servers (&ctx);
+
ctx.polling = true;
while (ctx.polling)
poller_run (&ctx.poller);