]> git.mdlowis.com Git - projs/tide.git/commitdiff
Fixed a bug in the new shortcut handler
authorMichael D. Lowis <mike@mdlowis.com>
Fri, 3 Mar 2017 01:04:39 +0000 (20:04 -0500)
committerMichael D. Lowis <mike@mdlowis.com>
Fri, 3 Mar 2017 01:04:39 +0000 (20:04 -0500)
xedit.c

diff --git a/xedit.c b/xedit.c
index aeaff7b749fbd1634f14fb36a325bfe471f7eb0a..d6a8937a387260ef3f4672b934490e6907d05e7d 100644 (file)
--- 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