From: Michael D. Lowis Date: Fri, 19 May 2017 13:09:27 +0000 (-0400) Subject: Tweaked the join shortcut to make the undo operation more intuitive X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=f754919d5771cf28930d8b414667e0ea3cda6c9c;p=projs%2Ftide.git Tweaked the join shortcut to make the undo operation more intuitive --- diff --git a/inc/shortcuts.h b/inc/shortcuts.h index f18471f..a2bece2 100644 --- a/inc/shortcuts.h +++ b/inc/shortcuts.h @@ -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, ' '); }