]> git.mdlowis.com Git - projs/tide.git/commitdiff
Tweaked the join shortcut to make the undo operation more intuitive
authorMichael D. Lowis <mike.lowis@gentex.com>
Fri, 19 May 2017 13:09:27 +0000 (09:09 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Fri, 19 May 2017 13:09:27 +0000 (09:09 -0400)
inc/shortcuts.h

index f18471f1a242ce2c0cae41fa99da94bec899553c..a2bece2458fb8990fb38dfc0602d36feccb2a414 100644 (file)
@@ -10,7 +10,7 @@ static void join_lines(void) {
     view_delete(view, RIGHT, false);
     Rune r = view_getrune(view);
     for (; r == '\t' || r == ' '; r = view_getrune(view))
-        view_delete(view, RIGHT, false);
+        view_byrune(view, RIGHT, true);
     if (r != '\n' && r != RUNE_CRLF)
         view_insert(view, false, ' ');
 }