From f4a11fd4378498c4301b756a6bfc1812a3502e15 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 21 Aug 2019 00:28:23 -0400 Subject: [PATCH] Fix #1679: newline-and-indent advice not deleting trailing whitespace --- modules/config/default/autoload/default.el | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/config/default/autoload/default.el b/modules/config/default/autoload/default.el index 15ab54961..6efbff355 100644 --- a/modules/config/default/autoload/default.el +++ b/modules/config/default/autoload/default.el @@ -119,6 +119,7 @@ languages)." (if (and (sp-point-in-comment) comment-line-break-function) (funcall comment-line-break-function) + (delete-horizontal-space t) (newline nil t) (indent-according-to-mode)))