From f754919d5771cf28930d8b414667e0ea3cda6c9c Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Fri, 19 May 2017 09:09:27 -0400 Subject: [PATCH] Tweaked the join shortcut to make the undo operation more intuitive --- inc/shortcuts.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, ' '); } -- 2.52.0