From 71638a97a8dfdba393ecc13de3a1a1cf7006cd1f Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Thu, 2 Mar 2017 20:04:39 -0500 Subject: [PATCH] Fixed a bug in the new shortcut handler --- xedit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xedit.c b/xedit.c index aeaff7b..d6a8937 100644 --- a/xedit.c +++ b/xedit.c @@ -399,11 +399,11 @@ static void newline(void) { if (view->selection.end == 0) { view_insert(view, true, '\n'); view->selection = (Sel){0,0,0}; + return; } - } else { - view_eol(view, false); - view_insert(view, true, '\n'); } + view_eol(view, false); + view_insert(view, true, '\n'); } /* Main Routine -- 2.51.0