From: Michael D. Lowis Date: Fri, 3 Mar 2017 01:04:39 +0000 (-0500) Subject: Fixed a bug in the new shortcut handler X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=71638a97a8dfdba393ecc13de3a1a1cf7006cd1f;p=projs%2Ftide.git Fixed a bug in the new shortcut handler --- 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