From fcd75e1d48dd2459592da8f448a3eb13e40713d5 Mon Sep 17 00:00:00 2001 From: pancake Date: Mon, 28 Apr 2014 10:17:42 +0200 Subject: [PATCH] Fix #806 - Handle ^D in == --- libr/core/rtr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libr/core/rtr.c b/libr/core/rtr.c index fc5267d22e..53c62d4390 100644 --- a/libr/core/rtr.c +++ b/libr/core/rtr.c @@ -557,15 +557,15 @@ R_API void r_core_rtr_session(RCore *core, const char *input) { free (r_line_singleton ()->prompt); r_line_singleton ()->prompt = strdup (prompt); if ((r_cons_fgets (buf, sizeof (buf), 0, NULL))) { - if (*buf == 'q') + if (!*buf || *buf == 'q') break; - else if (*buf == 'V') { + if (*buf == 'V') { eprintf ("Visual mode not supported\n"); continue; } r_core_rtr_cmd (core, buf); r_cons_flush (); - } + } else break; } }