[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 7762250 032/108: Don't indent on empty line.

From: Artur Malabarba
Subject: [elpa] master 7762250 032/108: Don't indent on empty line.
Date: Wed, 25 Mar 2015 18:38:56 +0000

branch: master
commit 7762250551e9409b5f431d46c66c85957d71dffc
Author: Artur Malabarba <address@hidden>
Commit: Artur Malabarba <address@hidden>

    Don't indent on empty line.
 aggressive-indent.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/aggressive-indent.el b/aggressive-indent.el
index 32dfa8e..af6d2ac 100644
--- a/aggressive-indent.el
+++ b/aggressive-indent.el
@@ -127,7 +127,8 @@ commands will NOT be followed by a re-indent."
   '((memq this-command aggressive-indent-protected-commands)
-    (null (buffer-modified-p)))
+    (null (buffer-modified-p))
+    (string-match "\\`[[:blank:]]*\n?\\'" (thing-at-point 'line)))
   "List of forms which prevent indentation when they evaluate to non-nil.
 This is for internal use only. For user customization, use
 `aggressive-indent-dont-indent-if' instead.")

reply via email to

[Prev in Thread] Current Thread [Next in Thread]